Ticket #36354: docbook-utils-spaces.patch
File docbook-utils-spaces.patch, 1.1 KB (added by lockhart (Thomas Lockhart), 12 years ago) |
---|
-
docbook-utils-0.6.14/bin/jw.in
old new 405 405 echo -e $SGML_HELP_MESSAGE >&2 406 406 exit 1 407 407 fi 408 if [ ! -d $SGML_OUTPUT_DIRECTORY]408 if [ ! -d "$SGML_OUTPUT_DIRECTORY" ] 409 409 then 410 mkdir $SGML_OUTPUT_DIRECTORY2>/dev/null410 mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null 411 411 if [ $? -ne 0 ] 412 412 then 413 413 echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2 … … 422 422 echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`" 423 423 echo "Using stylesheet: $SGML_STYLESHEET" 424 424 echo "Working on: $SGML_FILE" 425 cd $SGML_OUTPUT_DIRECTORY425 cd "$SGML_OUTPUT_DIRECTORY" 426 426 export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS 427 427 export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET 428 428 NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks` … … 433 433 sh $SGML_BACKEND >$SGML_FILE_NAME.html 434 434 fi 435 435 SGML_RETURN=$? 436 cd $SGML_CURRENT_DIRECTORY436 cd "$SGML_CURRENT_DIRECTORY" 437 437 438 438 if [ $SGML_RETURN -gt 0 ] 439 439 then exit `expr 7 + $SGML_RETURN`