Author: jfs
Date: Tue Nov 5 00:23:38 2013
New Revision: 10318
URL: http://svn.debian.org/wsvn/?sc=1&rev=10318
Log:
Make sure the script works when called with absolute path
Modified:
man-cgi/extractor/generate-indexes.sh
Modified: man-cgi/extractor/generate-indexes.sh
URL:
http://svn.debian.org/wsvn/man-cgi/extractor/generate-indexes.sh?rev=10318&op=diff
==============================================================================
--- man-cgi/extractor/generate-indexes.sh (original)
+++ man-cgi/extractor/generate-indexes.sh Tue Nov 5 00:23:38 2013
@@ -1,7 +1,10 @@
#!/bin/sh
-. ./config
+ME=$0
+MYDIR="`dirname $ME`"
+
+. ${MYDIR}/config
if [ ! -d "$MANDIR" ] ; then
echo "The directory '$MANDIR' does not exist"
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]