2007-07-18 23:04:26 +00:00
|
|
|
#!/bin/sh
|
2019-01-15 19:22:29 +00:00
|
|
|
srcdir=$(dirname "$0")
|
2008-02-12 17:14:30 +00:00
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
2019-01-15 19:22:29 +00:00
|
|
|
ORIGDIR=$(pwd)
|
|
|
|
cd "$srcdir" || exit 1
|
2008-02-12 17:14:30 +00:00
|
|
|
PROJECT=Transmission
|
2007-08-15 20:31:17 +00:00
|
|
|
|
2007-10-08 15:37:33 +00:00
|
|
|
GETTEXTIZE="glib-gettextize"
|
|
|
|
$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
|
|
|
|
if test $? -ne 0; then
|
2019-01-15 19:22:29 +00:00
|
|
|
GETTEXTIZE=""
|
2007-10-08 15:37:33 +00:00
|
|
|
fi
|
|
|
|
|
2007-08-15 20:31:17 +00:00
|
|
|
LIBTOOLIZE=libtoolize
|
2019-01-15 19:22:29 +00:00
|
|
|
if libtoolize --help > /dev/null 2>&1; then
|
2008-05-27 21:49:09 +00:00
|
|
|
:
|
2019-01-15 19:22:29 +00:00
|
|
|
elif glibtoolize --help > /dev/null 2>&1; then
|
2007-08-15 20:31:17 +00:00
|
|
|
LIBTOOLIZE=glibtoolize
|
|
|
|
fi
|
2007-08-16 15:48:07 +00:00
|
|
|
export LIBTOOLIZE
|
2007-08-15 20:31:17 +00:00
|
|
|
|
2009-05-31 20:25:37 +00:00
|
|
|
./update-version-h.sh
|
2009-05-31 20:22:47 +00:00
|
|
|
|
2019-01-15 19:22:29 +00:00
|
|
|
autoreconf -fi || exit 1
|
2007-10-08 15:37:33 +00:00
|
|
|
|
|
|
|
if test "$GETTEXTIZE"; then
|
|
|
|
echo "Creating aclocal.m4 ..."
|
|
|
|
test -r aclocal.m4 || touch aclocal.m4
|
|
|
|
echo "Running $GETTEXTIZE... Ignore non-fatal messages."
|
|
|
|
echo "no" | $GETTEXTIZE --force --copy
|
|
|
|
echo "Making aclocal.m4 writable ..."
|
|
|
|
test -r aclocal.m4 && chmod u+w aclocal.m4
|
|
|
|
echo "Running intltoolize..."
|
|
|
|
intltoolize --copy --force --automake
|
|
|
|
fi
|
|
|
|
|
2008-05-27 21:49:09 +00:00
|
|
|
cd "$ORIGDIR" || exit $?
|
2008-02-12 17:14:30 +00:00
|
|
|
|
2008-04-12 23:24:30 +00:00
|
|
|
if test -z "$AUTOGEN_SUBDIR_MODE"; then
|
2019-01-15 19:22:29 +00:00
|
|
|
echo Running $srcdir/configure "$@"
|
|
|
|
$srcdir/configure "$@"
|
2008-04-12 23:24:30 +00:00
|
|
|
|
2019-01-15 19:22:29 +00:00
|
|
|
echo
|
|
|
|
echo "Now type 'make' to compile $PROJECT."
|
2008-04-12 23:24:30 +00:00
|
|
|
fi
|