Blame SOURCES/docbook-utils-spaces.patch

4e9952
--- docbook-utils-0.6.14/bin/jw.in.spaces	2003-04-30 17:21:49.000000000 +0100
4e9952
+++ docbook-utils-0.6.14/bin/jw.in	2004-08-19 09:33:34.989426640 +0100
4e9952
@@ -405,9 +405,9 @@
4e9952
   echo -e $SGML_HELP_MESSAGE >&2
4e9952
   exit 1
4e9952
 fi
4e9952
-if [ ! -d $SGML_OUTPUT_DIRECTORY ]
4e9952
+if [ ! -d "$SGML_OUTPUT_DIRECTORY" ]
4e9952
 then
4e9952
-  mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null
4e9952
+  mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null
4e9952
   if [ $? -ne 0 ]
4e9952
   then
4e9952
     echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2
4e9952
@@ -422,7 +422,7 @@
4e9952
 echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
4e9952
 echo "Using stylesheet: $SGML_STYLESHEET"
4e9952
 echo "Working on: $SGML_FILE"
4e9952
-cd $SGML_OUTPUT_DIRECTORY
4e9952
+cd "$SGML_OUTPUT_DIRECTORY"
4e9952
 export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS
4e9952
 export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET
4e9952
 NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks`
4e9952
@@ -433,7 +433,7 @@
4e9952
 	sh $SGML_BACKEND >$SGML_FILE_NAME.html
4e9952
 fi
4e9952
 SGML_RETURN=$?
4e9952
-cd $SGML_CURRENT_DIRECTORY
4e9952
+cd "$SGML_CURRENT_DIRECTORY"
4e9952
 
4e9952
 if [ $SGML_RETURN -gt 0 ]
4e9952
 then exit `expr 7 + $SGML_RETURN`