Backport from trunk: we no longer have to "cd /openils/bin" before running autogen.sh
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 19:08:10 +0000 (19:08 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 19:08:10 +0000 (19:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7987 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/autogen.sh

index eb18dd3..8804b2b 100755 (executable)
@@ -1,4 +1,15 @@
 #!/bin/bash
+# vim:noet:ts=4
+
+(
+
+BASEDIR=${0%/*}
+if test "$BASEDIR" = "$0" ; then
+       BASEDIR="$(which $0)"
+       BASEDIR=${BASEDIR%/*}
+fi
+
+cd "$BASEDIR"
 
 CONFIG="$1";
 
@@ -21,3 +32,5 @@ perl org_tree_html_options.pl "$CONFIG" "$SLIMPACDIR/lib_list.inc";
 
 echo "Done";
 
+)
+