Blame SOURCES/docbook-utils-2ndspaces.patch

3ed2ca
--- Original/backends/dvi	2003-01-13 18:14:10.000000000 +0100
3ed2ca
+++ Changes/backends/dvi	2007-05-21 14:10:42.000000000 +0200
3ed2ca
@@ -6,31 +6,31 @@
3ed2ca
 export TEXINPUTS
3ed2ca
 
3ed2ca
 # Convert to TeX
3ed2ca
-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
 
3ed2ca
 # Convert from TeX to DVI
3ed2ca
-jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp
3ed2ca
+jadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then
3ed2ca
-  cat ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tex
3ed2ca
+  cat "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tex"
3ed2ca
   exit 2
3ed2ca
 fi
3ed2ca
-rm ${SGML_FILE_NAME}.tmp
3ed2ca
+rm "${SGML_FILE_NAME}.tmp"
3ed2ca
 
3ed2ca
 # If there are unresolved references, re-run jadetex, twice 
3ed2ca
-if egrep '^LaTeX Warning: There were undefined references.$' ${SGML_FILE_NAME}.log >/dev/null 2>&1
3ed2ca
+if egrep '^LaTeX Warning: There were undefined references.$' "${SGML_FILE_NAME}.log" >/dev/null 2>&1
3ed2ca
 then
3ed2ca
-    jadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
-    jadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
+    jadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
+    jadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
 fi
3ed2ca
-rm ${SGML_FILE_NAME}.log
3ed2ca
-rm ${SGML_FILE_NAME}.aux
3ed2ca
-rm ${SGML_FILE_NAME}.tex
3ed2ca
-rm ${SGML_FILE_NAME}.out
3ed2ca
+rm "${SGML_FILE_NAME}.log"
3ed2ca
+rm "${SGML_FILE_NAME}.aux"
3ed2ca
+rm "${SGML_FILE_NAME}.tex"
3ed2ca
+rm "${SGML_FILE_NAME}.out"
3ed2ca
 
3ed2ca
 exit 0
3ed2ca
--- Original/backends/html	2000-07-21 20:15:22.000000000 +0200
3ed2ca
+++ Changes/backends/html	2007-05-21 14:11:32.000000000 +0200
3ed2ca
@@ -3,7 +3,7 @@
3ed2ca
 # This program is under GPL license. See LICENSE file for details.
3ed2ca
 
3ed2ca
 # Convert to HTML
3ed2ca
-$SGML_JADE -t sgml $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t sgml $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
--- Original/backends/pdf	2003-03-17 18:47:11.000000000 +0100
3ed2ca
+++ Changes/backends/pdf	2007-05-21 14:13:58.000000000 +0200
3ed2ca
@@ -6,26 +6,26 @@
3ed2ca
 export TEXINPUTS
3ed2ca
 
3ed2ca
 # Convert to TeX
3ed2ca
-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
 
3ed2ca
 # Convert from TeX to PDF
3ed2ca
-pdfjadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp
3ed2ca
+pdfjadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then
3ed2ca
-  cat ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tex
3ed2ca
+  cat "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tex"
3ed2ca
   exit 2
3ed2ca
 fi
3ed2ca
-rm ${SGML_FILE_NAME}.tmp
3ed2ca
+rm "${SGML_FILE_NAME}.tmp"
3ed2ca
 
3ed2ca
 # Unconditionally re-run pdfjadetex, twice 
3ed2ca
-pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
-pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
-rm -f ${SGML_FILE_NAME}.log ${SGML_FILE_NAME}.aux \
3ed2ca
-      ${SGML_FILE_NAME}.tex ${SGML_FILE_NAME}.out
3ed2ca
+pdfjadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
+pdfjadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
+rm -f "${SGML_FILE_NAME}.log" "${SGML_FILE_NAME}.aux" \
3ed2ca
+      "${SGML_FILE_NAME}.tex" "${SGML_FILE_NAME}.out"
3ed2ca
 
3ed2ca
 exit 0
3ed2ca
--- Original/backends/ps	2003-03-17 18:51:48.000000000 +0100
3ed2ca
+++ Changes/backends/ps	2007-05-21 14:16:51.000000000 +0200
3ed2ca
@@ -6,30 +6,30 @@
3ed2ca
 export TEXINPUTS
3ed2ca
 
3ed2ca
 # Convert to TeX
3ed2ca
-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
 
3ed2ca
 # Convert from TeX to DVI
3ed2ca
-jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp
3ed2ca
+jadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then
3ed2ca
-  cat ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tmp
3ed2ca
-  rm ${SGML_FILE_NAME}.tex
3ed2ca
+  cat "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tmp"
3ed2ca
+  rm "${SGML_FILE_NAME}.tex"
3ed2ca
   exit 2
3ed2ca
 fi
3ed2ca
-rm ${SGML_FILE_NAME}.tmp
3ed2ca
+rm "${SGML_FILE_NAME}.tmp"
3ed2ca
 
3ed2ca
 # If there are unresolved references, re-run jadetex, twice 
3ed2ca
-if egrep '^LaTeX Warning: There were undefined references.$' ${SGML_FILE_NAME}.log >/dev/null 2>&1
3ed2ca
+if egrep '^LaTeX Warning: There were undefined references.$' "${SGML_FILE_NAME}.log" >/dev/null 2>&1
3ed2ca
 then
3ed2ca
-    jadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
-    jadetex ${SGML_FILE_NAME}.tex >/dev/null
3ed2ca
+    jadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
+    jadetex "${SGML_FILE_NAME}.tex" >/dev/null
3ed2ca
 fi
3ed2ca
-rm -f ${SGML_FILE_NAME}.log ${SGML_FILE_NAME}.aux \
3ed2ca
-	${SGML_FILE_NAME}.tex ${SGML_FILE_NAME}.out
3ed2ca
+rm -f "${SGML_FILE_NAME}.log" "${SGML_FILE_NAME}.aux" \
3ed2ca
+	"${SGML_FILE_NAME}.tex" "${SGML_FILE_NAME}.out"
3ed2ca
 
3ed2ca
 # Convert from DVI to PostScript
3ed2ca
 PAPERSIZE="-t letter"
3ed2ca
@@ -38,12 +38,12 @@
3ed2ca
   PAPERSIZE="-t a4"
3ed2ca
 fi
3ed2ca
 
3ed2ca
-dvips -R -q $PAPERSIZE ${SGML_FILE_NAME}.dvi -o ${SGML_FILE_NAME}.ps
3ed2ca
+dvips -R -q $PAPERSIZE "${SGML_FILE_NAME}.dvi" -o "${SGML_FILE_NAME}.ps"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then
3ed2ca
-  rm ${SGML_FILE_NAME}.dvi
3ed2ca
+  rm "${SGML_FILE_NAME}.dvi"
3ed2ca
   exit 3
3ed2ca
 fi
3ed2ca
-rm ${SGML_FILE_NAME}.dvi
3ed2ca
+rm "${SGML_FILE_NAME}.dvi"
3ed2ca
 
3ed2ca
 exit 0
3ed2ca
--- Original/backends/rtf	2000-07-21 20:15:22.000000000 +0200
3ed2ca
+++ Changes/backends/rtf	2007-05-21 14:18:37.000000000 +0200
3ed2ca
@@ -3,7 +3,7 @@
3ed2ca
 # This program is under GPL license. See LICENSE file for details.
3ed2ca
 
3ed2ca
 # Convert to RTF
3ed2ca
-$SGML_JADE -t rtf -o ${SGML_FILE_NAME}.rtf $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t rtf -o "${SGML_FILE_NAME}.rtf" $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
--- Original/backends/tex	2000-07-21 20:15:22.000000000 +0200
3ed2ca
+++ Changes/backends/tex	2007-05-21 14:21:12.000000000 +0200
3ed2ca
@@ -3,7 +3,7 @@
3ed2ca
 # This program is under GPL license. See LICENSE file for details.
3ed2ca
 
3ed2ca
 # Convert to TeX
3ed2ca
-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
3ed2ca
+$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
--- Original/backends/txt	2004-02-11 14:58:03.000000000 +0100
3ed2ca
+++ Changes/backends/txt	2007-05-21 14:22:33.000000000 +0200
3ed2ca
@@ -23,7 +23,7 @@
3ed2ca
 trap 'rm -f "$HTML"; exit' 0 1 2 3 7 13 15
3ed2ca
 
3ed2ca
 # Convert to HTML
3ed2ca
-$SGML_JADE -V nochunks -t sgml ${SGML_ARGUMENTS} >${HTML}
3ed2ca
+$SGML_JADE -V nochunks -t sgml ${SGML_ARGUMENTS} "$SGML_FILE" >${HTML}
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi
3ed2ca
--- Original/bin/jw.in	2003-04-30 18:21:49.000000000 +0200
3ed2ca
+++ Changes/bin/jw.in	2007-05-21 14:28:58.000000000 +0200
3ed2ca
@@ -246,7 +246,7 @@ then
3ed2ca
   echo -e $SGML_HELP_MESSAGE >&2
3ed2ca
   exit 1
3ed2ca
 fi
3ed2ca
-if [ ! -s $SGML_FRONTEND ]
3ed2ca
+if [ ! -s "$SGML_FRONTEND" ]
3ed2ca
 then
3ed2ca
   echo "`basename $0`: There is no frontend called \"$SGML_FRONTEND\"." >&2
3ed2ca
   exit 2
3ed2ca
@@ -270,14 +270,14 @@
3ed2ca
   echo -e $SGML_HELP_MESSAGE >&2
3ed2ca
   exit 1
3ed2ca
 fi
3ed2ca
-if [ ! -s $SGML_FILE ]
3ed2ca
+if [ ! -s "$SGML_FILE" ]
3ed2ca
 then
3ed2ca
   echo "`basename $0`: Cannot open \"$SGML_FILE\"." >&2
3ed2ca
   exit 3
3ed2ca
 fi
3ed2ca
 
3ed2ca
 # Separate the file name and the extension (if any)
3ed2ca
-SGML_FILE_NAME=`basename $SGML_FILE`
3ed2ca
+SGML_FILE_NAME=`basename "$SGML_FILE"`
3ed2ca
 SGML_FILE_NAME=${SGML_FILE_NAME%.*}
3ed2ca
 
3ed2ca
 # Determine if we are in an XML file
3ed2ca
@@ -416,7 +416,7 @@
3ed2ca
 fi
3ed2ca
 
3ed2ca
 # Prepare the parser's arguments
3ed2ca
-SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_WARNINGS $SGML_DECL $SGML_FILE"
3ed2ca
+SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_WARNINGS $SGML_DECL"
3ed2ca
 
3ed2ca
 # Call the backend
3ed2ca
 echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`"
3ed2ca
@@ -430,7 +430,7 @@
3ed2ca
 then
3ed2ca
 	sh $SGML_BACKEND
3ed2ca
 else
3ed2ca
-	sh $SGML_BACKEND >$SGML_FILE_NAME.html
3ed2ca
+	sh $SGML_BACKEND >"$SGML_FILE_NAME.html"
3ed2ca
 fi
3ed2ca
 SGML_RETURN=$?
3ed2ca
 cd "$SGML_CURRENT_DIRECTORY"
3ed2ca
diff -urNp docbook-utils-0.6.14-orig/backends/man.in docbook-utils-0.6.14/backends/man.in
3ed2ca
--- docbook-utils-0.6.14-orig/backends/man.in	2003-02-11 13:56:23.000000000 +0100
3ed2ca
+++ docbook-utils-0.6.14/backends/man.in	2009-07-24 15:07:04.000000000 +0200
3ed2ca
@@ -7,7 +7,7 @@ HELPER=$SGML_BASE_DIR/docbook/utils-@VER
3ed2ca
 TMPDIR=`mktemp -d /tmp/man.XXXXXX` || \
3ed2ca
  { echo >&2 "man backend: could not create secure temporary directory"; exit 1;}
3ed2ca
 trap 'rm -rf "${TMPDIR}"' EXIT
3ed2ca
-nsgmls $SGML_FILE > "${TMPDIR}/nsgmls.tmp"
3ed2ca
+nsgmls "$SGML_FILE" > "${TMPDIR}/nsgmls.tmp"
3ed2ca
 sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp" 2>"${TMPDIR}/errs"
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then
3ed2ca
diff -urNp docbook-utils-0.6.14-orig/backends/texi.in docbook-utils-0.6.14/backends/texi.in
3ed2ca
--- docbook-utils-0.6.14-orig/backends/texi.in	2002-08-05 23:20:56.000000000 +0200
3ed2ca
+++ docbook-utils-0.6.14/backends/texi.in	2009-07-24 15:08:02.000000000 +0200
3ed2ca
@@ -3,7 +3,7 @@
3ed2ca
 # This program is under GPL license. See LICENSE file for details.
3ed2ca
 
3ed2ca
 # Convert to texinfo
3ed2ca
-nsgmls $SGML_FILE | sgmlspl $SGML_BASE_DIR/docbook/utils-@VERSION@/helpers/docbook2texi-spec.pl >$SGML_FILE_NAME.texi
3ed2ca
+nsgmls "$SGML_FILE" | sgmlspl $SGML_BASE_DIR/docbook/utils-@VERSION@/helpers/docbook2texi-spec.pl >$SGML_FILE_NAME.texi
3ed2ca
 if [ $? -ne 0 ]
3ed2ca
 then exit 1
3ed2ca
 fi