autogen.sh 727 Bytes
Newer Older
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
ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"
8

9
(test -f $srcdir/configure.ac \
10
  && test -f $srcdir/autogen.sh \
Rodrigo Moya's avatar
Rodrigo Moya committed
11
  && test -d $srcdir/shell) || {
12
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
13
    echo " top-level gnome-control-center directory"
14 15 16
    exit 1
}

17 18 19 20
DIE=0

rm -f .using-gnome-libs-package

21
# Fetch submodules if needed
22 23
echo "+ Setting up submodules"
git submodule update --init --recursive
24

James Henstridge's avatar
James Henstridge committed
25
if ! which gnome-autogen.sh ; then
26 27 28 29 30
  echo "You need to install the gnome-common module and make"
  echo "sure the gnome-autogen.sh script is in your \$PATH."
  exit 1
fi

31
. gnome-autogen.sh