[open-ils-commits] r7982 - trunk/Open-ILS/src/extras

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Nov 4 06:40:02 EST 2007


Author: dbs
Date: 2007-11-04 06:24:46 -0500 (Sun, 04 Nov 2007)
New Revision: 7982

Modified:
   trunk/Open-ILS/src/extras/autogen.sh
Log:
Enable autogen.sh to be called from any location.
We no longer have to "cd /openils/bin" before running autogen.sh


Modified: trunk/Open-ILS/src/extras/autogen.sh
===================================================================
--- trunk/Open-ILS/src/extras/autogen.sh	2007-11-04 05:49:13 UTC (rev 7981)
+++ trunk/Open-ILS/src/extras/autogen.sh	2007-11-04 11:24:46 UTC (rev 7982)
@@ -1,5 +1,14 @@
 #!/bin/bash
+# vim:noet:ts=4
 
+BASEDIR=${0%/*}
+if test "$BASEDIR" = "$0" ; then
+	BASEDIR="$(which $0)"
+	BASEDIR=${BASEDIR%/*}
+fi
+
+cd "$BASEDIR"
+
 CONFIG="$1";
 
 [ -z "$CONFIG" ] && echo "usage: $0 <bootstrap_config>" && exit;



More information about the open-ils-commits mailing list