source: trunk/autogen.sh @ 8227

Last change on this file since 8227 was 5952, checked in by charles, 14 years ago

autogen.sh cleanups by Triskelios

  • Property svn:executable set to *
File size: 1.0 KB
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
25autoreconf -fi -I m4
26
27if test "$GETTEXTIZE"; then
28  echo "Creating aclocal.m4 ..."
29  test -r aclocal.m4 || touch aclocal.m4
30  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
31  echo "no" | $GETTEXTIZE --force --copy
32  echo "Making aclocal.m4 writable ..."
33  test -r aclocal.m4 && chmod u+w aclocal.m4
34  echo "Running intltoolize..."
35  intltoolize --copy --force --automake
36fi
37
38cd "$ORIGDIR" || exit $?
39
40if test -z "$AUTOGEN_SUBDIR_MODE"; then
41        echo Running $srcdir/configure --enable-maintainer-mode "$@"
42        $srcdir/configure --enable-maintainer-mode "$@"
43
44        echo 
45        echo "Now type 'make' to compile $PROJECT."
46fi
47
Note: See TracBrowser for help on using the repository browser.