autogen.sh 620 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
PKG_NAME="gedit"
8

Paolo Borelli's avatar
Paolo Borelli committed
9
(test -f $srcdir/configure.ac \
Paolo Maggi's avatar
Paolo Maggi committed
10 11
  && test -f $srcdir/README \
  && test -d $srcdir/gedit) || {
12 13 14 15 16
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
    echo " top-level $PKG_NAME directory"
    exit 1
}

Paolo Maggi's avatar
Paolo Maggi committed
17 18 19 20
which gnome-autogen.sh || {
    echo "You need to install gnome-common from the GNOME CVS"
    exit 1
}
21

Paolo Borelli's avatar
Paolo Borelli committed
22
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.8 REQUIRED_MACROS=python.m4 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh