autogen.sh 517 Bytes
Newer Older
Jose Maria Celorio's avatar
Jose Maria Celorio committed
1 2 3 4 5 6
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

7
PKG_NAME="glade"
Jose Maria Celorio's avatar
Jose Maria Celorio committed
8

9
(test -f $srcdir/configure.ac \
10
  && test -f $srcdir/autogen.sh) || {
Jose Maria Celorio's avatar
Jose Maria Celorio committed
11
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
12
    echo " top-level $PKG_NAME directory"
Jose Maria Celorio's avatar
Jose Maria Celorio committed
13 14 15
    exit 1
}

16 17 18 19 20
which gnome-autogen.sh || {
    echo "You need to install gnome-common module and make"
    echo "sure the gnome-autogen.sh script is in your \$PATH."
    exit 1
}
21

22
. gnome-autogen.sh