[nautilus-actions] Be able to run autogen.sh from another directory



commit da7aded51601f9fae9b514ecc92dfaae08f54242
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Nov 21 07:39:37 2011 +0100

    Be able to run autogen.sh from another directory

 ChangeLog      |    4 ++++
 run-autogen.sh |    7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 856b171..2d0706f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-21 Pierre Wieser <pwieser trychlos org>
+
+	* run-autogen.sh: Be able to run from another directory.
+
 2011-11-16 Pierre Wieser <pwieser trychlos org>
 
 	* src/nact/base-window.c:
diff --git a/run-autogen.sh b/run-autogen.sh
index 87e7cac..06ee097 100755
--- a/run-autogen.sh
+++ b/run-autogen.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 autogen_target=${autogen_target:-normal}
+srcdir=$(cd ${0%/*}; pwd)
 
 # a nautilus-actions-x.y may remain after an aborted make distcheck
 # such a directory breaks gnome-autogen.sh generation
@@ -11,7 +12,7 @@ for d in $(find . -maxdepth 1 -type d -name 'nautilus-actions-*'); do
 done
 
 [ "${autogen_target}" = "normal" ] &&
-	exec ./autogen.sh \
+	exec ${srcdir}/autogen.sh \
 		--prefix=$(pwd)/install \
 		--sysconfdir=/etc \
 		--with-nautilus-extdir=$(pwd)/install/lib/nautilus \
@@ -24,7 +25,7 @@ done
 
 # 'doc' mode: enable deprecated, manuals and gtk-doc
 [ "${autogen_target}" = "doc" ] &&
-	exec ./autogen.sh \
+	exec ${srcdir}/autogen.sh \
 		--prefix=$(pwd)/install \
 		--sysconfdir=/etc \
 		--with-nautilus-extdir=$(pwd)/install/lib/nautilus \
@@ -38,7 +39,7 @@ done
 
 # 'distcheck' mode: disable deprecated, enable manuals and gtk-doc
 [ "${autogen_target}" = "distcheck" ] &&
-	exec ./autogen.sh \
+	exec ${srcdir}/autogen.sh \
 		--prefix=$(pwd)/install \
 		--sysconfdir=/etc \
 		--with-nautilus-extdir=$(pwd)/install/lib/nautilus \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]