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