[gxml/autotools_fixes: 8/9] autogen.sh: Improve buildsrc != compilationsrc
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/autotools_fixes: 8/9] autogen.sh: Improve buildsrc != compilationsrc
- Date: Thu, 23 Aug 2012 17:49:10 +0000 (UTC)
commit 359e69efe20f2f540be1e58688a47a1c9edb05b2
Author: Javier JardÃn <jjardon gnome org>
Date: Fri Aug 24 02:34:18 2012 +0900
autogen.sh: Improve buildsrc != compilationsrc
autogen.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 1db7496..506cd34 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,8 +3,11 @@
# Run this to generate all the initial makefiles, etc. You'll want to
# make sure that you have Makefile.am and configure.ac already.
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+OLDDIR=`pwd`
+cd $srcdir
# Set paths if GNOME2_DIR is set
if [ -n "$GNOME2_DIR" ]; then
@@ -38,6 +41,8 @@ intltoolize --force --copy --automake
# TODO: test that disabling any of these results in autoreconf and intltoolize handling it
# gracefully or re-add checks
+cd $OLDDIR
+
# Run ./configure
if [ -z "$NOCONFIGURE" ]; then
echo Running $srcdir/configure "$@" ...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]