Blame SOURCES/docbook-utils-2ndspaces.patch

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