Enable autogen.sh to be called from any location.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 11:24:46 +0000 (11:24 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 11:24:46 +0000 (11:24 +0000)
We no longer have to "cd /openils/bin" before running autogen.sh

git-svn-id: svn://svn.open-ils.org/ILS/trunk@7982 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/autogen.sh

index eb18dd3..5e3e743 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+# vim:noet:ts=4
+
+BASEDIR=${0%/*}
+if test "$BASEDIR" = "$0" ; then
+       BASEDIR="$(which $0)"
+       BASEDIR=${BASEDIR%/*}
+fi
+
+cd "$BASEDIR"
 
 CONFIG="$1";