This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/sh |
| 2 |
# Run this to generate all the initial makefiles, etc. |
| 3 |
|
| 4 |
srcdir=`dirname $0` |
| 5 |
test -z "$srcdir" && srcdir=. |
| 6 |
|
| 7 |
PKG_NAME="glade" |
| 8 |
|
| 9 |
(test -f $srcdir/configure.ac \ |
| 10 |
&& test -f $srcdir/autogen.sh) || { |
| 11 |
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" |
| 12 |
echo " top-level $PKG_NAME directory" |
| 13 |
exit 1 |
| 14 |
} |
| 15 |
|
| 16 |
DIE=0 |
| 17 |
|
| 18 |
# This is a bit complicated here since we can't use gnome-config yet. |
| 19 |
# It'll be easier after switching to pkg-config since we can then |
| 20 |
# use pkg-config to find the gnome-autogen.sh script. |
| 21 |
|
| 22 |
gnome_autogen= |
| 23 |
gnome_datadir= |
| 24 |
|
| 25 |
ifs_save="$IFS"; IFS=":" |
| 26 |
for dir in $PATH ; do |
| 27 |
test -z "$dir" && dir=. |
| 28 |
if test -f $dir/gnome-autogen.sh ; then |
| 29 |
gnome_autogen="$dir/gnome-autogen.sh" |
| 30 |
gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'` |
| 31 |
break |
| 32 |
fi |
| 33 |
done |
| 34 |
IFS="$ifs_save" |
| 35 |
|
| 36 |
if test -z "$gnome_autogen" ; then |
| 37 |
echo "You need to install the gnome-common module and make" |
| 38 |
echo "sure the gnome-autogen.sh script is in your \$PATH." |
| 39 |
exit 1 |
| 40 |
fi |
| 41 |
|
| 42 |
automake_version=1.9 |
| 43 |
|
| 44 |
#case `uname` in |
| 45 |
#CYGWIN*) |
| 46 |
# automake 1.4 of cygwin does not define EGREP in libtool.m4, and |
| 47 |
# fails to do the file magic test when -rpath is given |
| 48 |
# automake_version=1.7 |
| 49 |
# ;; |
| 50 |
#esac |
| 51 |
|
| 52 |
GTKDOCIZE="gtkdocize --flavour no-tmpl" REQUIRED_GNOME_DOC_UTILS_VERSION=0.9.0 REQUIRED_AUTOMAKE_VERSION="$automake_version" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen |