source: trunk/autogen.sh

Last change on this file was 11753, checked in by jordan, 7 years ago

(trunk) #3939 "autogen.sh doesn't work correctly on systems where /bin/sh doesn't point to bash" -- fixed with patch from er13

This bug was introduced a couple of days ago in the fix to #3901 "Confusing error message when libtool is missing." The fix introduced a bashism, which should be avoided if we want to work with strict sh.

  • Property svn:executable set to *
File size: 1015 bytes
Line 
1#!/bin/sh
2srcdir=`dirname $0`
3test -z "$srcdir" && srcdir=.
4
5ORIGDIR=`pwd`
6cd "$srcdir"
7PROJECT=Transmission
8
9GETTEXTIZE="glib-gettextize"
10$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
11if test $? -ne 0; then
12    GETTEXTIZE=""
13fi
14
15LIBTOOLIZE=libtoolize
16if libtoolize --help >/dev/null 2>&1
17then
18  :
19elif glibtoolize --help >/dev/null 2>&1
20then
21  LIBTOOLIZE=glibtoolize
22fi
23export LIBTOOLIZE
24
25./update-version-h.sh
26
27autoreconf -fi || exit 1;
28
29
30if test "$GETTEXTIZE"; then
31  echo "Creating aclocal.m4 ..."
32  test -r aclocal.m4 || touch aclocal.m4
33  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
34  echo "no" | $GETTEXTIZE --force --copy
35  echo "Making aclocal.m4 writable ..."
36  test -r aclocal.m4 && chmod u+w aclocal.m4
37  echo "Running intltoolize..."
38  intltoolize --copy --force --automake
39fi
40
41cd "$ORIGDIR" || exit $?
42
43if test -z "$AUTOGEN_SUBDIR_MODE"; then
44        echo Running $srcdir/configure "$@"
45        $srcdir/configure "$@"
46
47        echo 
48        echo "Now type 'make' to compile $PROJECT."
49fi
50
Note: See TracBrowser for help on using the repository browser.