From d29ad812f426269b77f80eb51a89bcfa3b48dbc9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 27 May 2008 21:49:09 +0000 Subject: [PATCH] autogen.sh cleanups by Triskelios --- autogen.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index 6879e23cc..3b2c1a476 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,7 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` -cd $srcdir +cd "$srcdir" PROJECT=Transmission GETTEXTIZE="glib-gettextize" @@ -13,7 +13,10 @@ if test $? -ne 0; then fi LIBTOOLIZE=libtoolize -if ! libtoolize --help >/dev/null 2>&1 && glibtoolize --help >/dev/null 2>&1 +if libtoolize --help >/dev/null 2>&1 +then + : +elif glibtoolize --help >/dev/null 2>&1 then LIBTOOLIZE=glibtoolize fi @@ -32,7 +35,7 @@ if test "$GETTEXTIZE"; then intltoolize --copy --force --automake fi -cd $ORIGDIR || exit $? +cd "$ORIGDIR" || exit $? if test -z "$AUTOGEN_SUBDIR_MODE"; then echo Running $srcdir/configure --enable-maintainer-mode "$@"