Ticket #36354: docbook-utils-spaces.patch

File docbook-utils-spaces.patch, 1.1 KB (added by lockhart (Thomas Lockhart), 12 years ago)

Patchfile from Fedora 18 RPM.

  • docbook-utils-0.6.14/bin/jw.in

    old new  
    405405  echo -e $SGML_HELP_MESSAGE >&2
    406406  exit 1
    407407fi
    408 if [ ! -d $SGML_OUTPUT_DIRECTORY ]
     408if [ ! -d "$SGML_OUTPUT_DIRECTORY" ]
    409409then
    410   mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null
     410  mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null
    411411  if [ $? -ne 0 ]
    412412  then
    413413    echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2
     
    422422echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
    423423echo "Using stylesheet: $SGML_STYLESHEET"
    424424echo "Working on: $SGML_FILE"
    425 cd $SGML_OUTPUT_DIRECTORY
     425cd "$SGML_OUTPUT_DIRECTORY"
    426426export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS
    427427export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET
    428428NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks`
     
    433433        sh $SGML_BACKEND >$SGML_FILE_NAME.html
    434434fi
    435435SGML_RETURN=$?
    436 cd $SGML_CURRENT_DIRECTORY
     436cd "$SGML_CURRENT_DIRECTORY"
    437437
    438438if [ $SGML_RETURN -gt 0 ]
    439439then exit `expr 7 + $SGML_RETURN`