2010-09-09 06:58:03 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
2008-04-09 06:51:15 -04:00
|
|
|
|
2012-05-11 12:37:20 -04:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2008-04-09 06:51:15 -04:00
|
|
|
|
2012-05-11 12:37:20 -04:00
|
|
|
olddir=`pwd`
|
2010-10-20 04:42:34 -04:00
|
|
|
|
2010-09-09 06:58:03 -04:00
|
|
|
cd $srcdir
|
2008-04-09 06:51:15 -04:00
|
|
|
PROJECT=Clutter
|
2010-09-09 06:58:03 -04:00
|
|
|
TEST_TYPE=-f
|
|
|
|
FILE=clutter/clutter.h
|
2008-04-09 06:51:15 -04:00
|
|
|
|
2010-10-20 04:42:34 -04:00
|
|
|
test $TEST_TYPE $FILE || {
|
|
|
|
echo "You must run this script in the top-level $PROJECT directory"
|
|
|
|
exit 1
|
|
|
|
}
|
2010-09-09 06:58:03 -04:00
|
|
|
|
2012-01-09 10:04:08 -05:00
|
|
|
# GNU gettext automake support doesn't get along with git.
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
|
|
|
|
touch -t 200001010000 po/clutter-1.0.pot
|
|
|
|
|
2012-05-11 12:37:20 -04:00
|
|
|
GTKDOCIZE=`which gtkdocize`
|
|
|
|
if test -z $GTKDOCIZE; then
|
|
|
|
echo "*** No GTK-Doc found, please install it ***"
|
2010-11-10 08:59:09 -05:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2012-05-11 12:37:20 -04:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found, please install it ***"
|
2010-10-20 04:42:34 -04:00
|
|
|
exit 1
|
2012-05-11 12:37:20 -04:00
|
|
|
fi
|
2008-04-09 06:51:15 -04:00
|
|
|
|
2010-10-20 04:42:34 -04:00
|
|
|
# NOCONFIGURE is used by gnome-common
|
2010-06-29 11:25:18 -04:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
2010-09-09 06:58:03 -04:00
|
|
|
if test -z "$*"; then
|
|
|
|
echo "I am going to run ./configure with no arguments - if you wish "
|
|
|
|
echo "to pass any to it, please specify them on the $0 command line."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf autom4te.cache
|
|
|
|
|
|
|
|
gtkdocize || exit $?
|
2012-05-11 12:37:20 -04:00
|
|
|
autoreconf --force --install --verbose || exit $?
|
2010-09-09 06:58:03 -04:00
|
|
|
|
2012-05-11 12:37:20 -04:00
|
|
|
cd "$olddir"
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|