Added a GNOME specific autogen.sh

It is from the nautilus project, and does the same thing as the old
one, but in a more sane way.
This commit is contained in:
Gergely Polonkai 2013-08-26 01:18:45 +02:00
parent 0e5e6e0f82
commit 791d7f2381

View File

@ -1,16 +1,22 @@
#!/bin/sh #!/bin/sh
# Run this to generate all the initial makefiles, etc. # Run this to generate all the initial makefiles, etc.
FOUND_GNOME_AUTOGEN_SH=1 srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
which gnome-autogen.sh &> /dev/null || FOUND_GNOME_AUTOGEN_SH=0 PKG_NAME="astrognome"
if test x"$FOUND_GNOME_AUTOGEN_SH" = x"1"; then (test -f $srcdir/configure.ac \
gnome-autogen.sh && test -f $srcdir/src/astrognome.c) || {
else echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo "GNOME's gnome-autogen.sh can not be found in your path. If you have it in a" echo " top-level $PKG_NAME directory"
echo "non-trivial place, simply call it now, with e.g." exit 1
echo "/non/trivial/dir/gnome-autogen.sh. In RPM based distributions it can be" }
echo "found in the gnome-common package."
fi which gnome-autogen.sh || {
echo "gnome-autogen.sh not found, you need to install gnome-common"
exit 1
}
REQUIRED_AUTOMAKE_VERSION=1.9 . gnome-autogen.sh