autogen.sh 443 Bytes
Newer Older
Johan Dahlin's avatar
Johan Dahlin committed
1 2
#!/bin/sh

3 4
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
Johan Dahlin's avatar
Johan Dahlin committed
5

6
(test -f $srcdir/configure.ac \
7 8 9
  && test -f $srcdir/README \
  && test -d $srcdir/src) || {
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
10
    echo " top-level nautilus-python directory"
11
    exit 1
Johan Dahlin's avatar
Johan Dahlin committed
12 13
}

14 15 16
which gnome-autogen.sh || {
    echo "You need to install gnome-common from the GNOME Git"
    exit 1
Johan Dahlin's avatar
Johan Dahlin committed
17 18
}

19
. gnome-autogen.sh --enable-maintainer-mode "$@"