autogen.sh 590 Bytes
Newer Older
Jim Krehl's avatar
Jim Krehl 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="gnome-main-menu"
Jim Krehl's avatar
Jim Krehl committed
8

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

DIE=0

rm -f .using-gnome-libs-package

20 21 22
if ! which mate-autogen ; then
  echo "You need to install the mate-common module and make"
  echo "sure the mate-autogen script is in your \$PATH."
Jim Krehl's avatar
Jim Krehl committed
23 24 25
  exit 1
fi

26
REQUIRED_AUTOMAKE_VERSION=1.9 . mate-autogen