From 4e9952e08472ce3f5eb834f781256b1471b8127b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 20:56:01 +0000 Subject: import docbook-utils-0.6.14-36.el7 --- diff --git a/.docbook-utils.metadata b/.docbook-utils.metadata new file mode 100644 index 0000000..c1e98e7 --- /dev/null +++ b/.docbook-utils.metadata @@ -0,0 +1 @@ +aae596844930e0e4bb7f8824024be0982cc4fa85 SOURCES/docbook-utils-0.6.14.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1560bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/docbook-utils-0.6.14.tar.gz diff --git a/SOURCES/db2html b/SOURCES/db2html new file mode 100755 index 0000000..ca94b82 --- /dev/null +++ b/SOURCES/db2html @@ -0,0 +1,59 @@ +#! /bin/sh + +ADMON_GRAPHICS=/usr/share/sgml/docbook/dsssl-stylesheets/images/*.gif + +output=docbook2html-dir +skip=0 +dbdircleanup=1 +outputdone=0 +for arg in "$@" +do + if [ $skip -gt 0 ] + then + skip=$(($skip - 1)) + continue + fi + case $arg in + -h|--help|-v|--version) break + ;; + -n|--nostd|-u|--nochunks) ;; + -o|--output) outputdone=1 + ;; + + -*) skip=1 + ;; + *) dbdircleanup=0 + if [ ${outputdone} -eq 1 ]; + then + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile="$basename "$output"" + outputdone=2 + elif [ ${outputdone} -eq 2 ]; + then + outputfile="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,' | \ + rev | cut -d'/' -f1 | rev)" + else + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile=$(basename "$output") + fi + ;; + esac +done + +if [ ${dbdircleanup} -eq 0 ]; +then + echo "Output is $output/$outputfile.html" +fi +if [ -d ${output} ] +then + rm -rf ${output}.junk + mv ${output} ${output}.junk +fi +mkdir ${output} +mkdir ${output}/stylesheet-images +cp ${ADMON_GRAPHICS} ${output}/stylesheet-images +jw -f docbook -b html -o ${output} "$@" +if [ ${dbdircleanup} -eq 1 ]; +then + rm -rf ${output} +fi diff --git a/SOURCES/docbook-utils-2ndspaces.patch b/SOURCES/docbook-utils-2ndspaces.patch new file mode 100644 index 0000000..eb4d6c6 --- /dev/null +++ b/SOURCES/docbook-utils-2ndspaces.patch @@ -0,0 +1,260 @@ +--- Original/backends/dvi 2003-01-13 18:14:10.000000000 +0100 ++++ Changes/backends/dvi 2007-05-21 14:10:42.000000000 +0200 +@@ -6,31 +6,31 @@ + export TEXINPUTS + + # Convert to TeX +-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS ++$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi + + # Convert from TeX to DVI +-jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp ++jadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp" + if [ $? -ne 0 ] + then +- cat ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tex ++ cat "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tex" + exit 2 + fi +-rm ${SGML_FILE_NAME}.tmp ++rm "${SGML_FILE_NAME}.tmp" + + # If there are unresolved references, re-run jadetex, twice +-if egrep '^LaTeX Warning: There were undefined references.$' ${SGML_FILE_NAME}.log >/dev/null 2>&1 ++if egrep '^LaTeX Warning: There were undefined references.$' "${SGML_FILE_NAME}.log" >/dev/null 2>&1 + then +- jadetex ${SGML_FILE_NAME}.tex >/dev/null +- jadetex ${SGML_FILE_NAME}.tex >/dev/null ++ jadetex "${SGML_FILE_NAME}.tex" >/dev/null ++ jadetex "${SGML_FILE_NAME}.tex" >/dev/null + fi +-rm ${SGML_FILE_NAME}.log +-rm ${SGML_FILE_NAME}.aux +-rm ${SGML_FILE_NAME}.tex +-rm ${SGML_FILE_NAME}.out ++rm "${SGML_FILE_NAME}.log" ++rm "${SGML_FILE_NAME}.aux" ++rm "${SGML_FILE_NAME}.tex" ++rm "${SGML_FILE_NAME}.out" + + exit 0 +--- Original/backends/html 2000-07-21 20:15:22.000000000 +0200 ++++ Changes/backends/html 2007-05-21 14:11:32.000000000 +0200 +@@ -3,7 +3,7 @@ + # This program is under GPL license. See LICENSE file for details. + + # Convert to HTML +-$SGML_JADE -t sgml $SGML_ARGUMENTS ++$SGML_JADE -t sgml $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi +--- Original/backends/pdf 2003-03-17 18:47:11.000000000 +0100 ++++ Changes/backends/pdf 2007-05-21 14:13:58.000000000 +0200 +@@ -6,26 +6,26 @@ + export TEXINPUTS + + # Convert to TeX +-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS ++$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi + + # Convert from TeX to PDF +-pdfjadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp ++pdfjadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp" + if [ $? -ne 0 ] + then +- cat ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tex ++ cat "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tex" + exit 2 + fi +-rm ${SGML_FILE_NAME}.tmp ++rm "${SGML_FILE_NAME}.tmp" + + # Unconditionally re-run pdfjadetex, twice +-pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null +-pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null +-rm -f ${SGML_FILE_NAME}.log ${SGML_FILE_NAME}.aux \ +- ${SGML_FILE_NAME}.tex ${SGML_FILE_NAME}.out ++pdfjadetex "${SGML_FILE_NAME}.tex" >/dev/null ++pdfjadetex "${SGML_FILE_NAME}.tex" >/dev/null ++rm -f "${SGML_FILE_NAME}.log" "${SGML_FILE_NAME}.aux" \ ++ "${SGML_FILE_NAME}.tex" "${SGML_FILE_NAME}.out" + + exit 0 +--- Original/backends/ps 2003-03-17 18:51:48.000000000 +0100 ++++ Changes/backends/ps 2007-05-21 14:16:51.000000000 +0200 +@@ -6,30 +6,30 @@ + export TEXINPUTS + + # Convert to TeX +-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS ++$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi + + # Convert from TeX to DVI +-jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp ++jadetex "${SGML_FILE_NAME}.tex" > "${SGML_FILE_NAME}.tmp" + if [ $? -ne 0 ] + then +- cat ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tmp +- rm ${SGML_FILE_NAME}.tex ++ cat "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tmp" ++ rm "${SGML_FILE_NAME}.tex" + exit 2 + fi +-rm ${SGML_FILE_NAME}.tmp ++rm "${SGML_FILE_NAME}.tmp" + + # If there are unresolved references, re-run jadetex, twice +-if egrep '^LaTeX Warning: There were undefined references.$' ${SGML_FILE_NAME}.log >/dev/null 2>&1 ++if egrep '^LaTeX Warning: There were undefined references.$' "${SGML_FILE_NAME}.log" >/dev/null 2>&1 + then +- jadetex ${SGML_FILE_NAME}.tex >/dev/null +- jadetex ${SGML_FILE_NAME}.tex >/dev/null ++ jadetex "${SGML_FILE_NAME}.tex" >/dev/null ++ jadetex "${SGML_FILE_NAME}.tex" >/dev/null + fi +-rm -f ${SGML_FILE_NAME}.log ${SGML_FILE_NAME}.aux \ +- ${SGML_FILE_NAME}.tex ${SGML_FILE_NAME}.out ++rm -f "${SGML_FILE_NAME}.log" "${SGML_FILE_NAME}.aux" \ ++ "${SGML_FILE_NAME}.tex" "${SGML_FILE_NAME}.out" + + # Convert from DVI to PostScript + PAPERSIZE="-t letter" +@@ -38,12 +38,12 @@ + PAPERSIZE="-t a4" + fi + +-dvips -R -q $PAPERSIZE ${SGML_FILE_NAME}.dvi -o ${SGML_FILE_NAME}.ps ++dvips -R -q $PAPERSIZE "${SGML_FILE_NAME}.dvi" -o "${SGML_FILE_NAME}.ps" + if [ $? -ne 0 ] + then +- rm ${SGML_FILE_NAME}.dvi ++ rm "${SGML_FILE_NAME}.dvi" + exit 3 + fi +-rm ${SGML_FILE_NAME}.dvi ++rm "${SGML_FILE_NAME}.dvi" + + exit 0 +--- Original/backends/rtf 2000-07-21 20:15:22.000000000 +0200 ++++ Changes/backends/rtf 2007-05-21 14:18:37.000000000 +0200 +@@ -3,7 +3,7 @@ + # This program is under GPL license. See LICENSE file for details. + + # Convert to RTF +-$SGML_JADE -t rtf -o ${SGML_FILE_NAME}.rtf $SGML_ARGUMENTS ++$SGML_JADE -t rtf -o "${SGML_FILE_NAME}.rtf" $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi +--- Original/backends/tex 2000-07-21 20:15:22.000000000 +0200 ++++ Changes/backends/tex 2007-05-21 14:21:12.000000000 +0200 +@@ -3,7 +3,7 @@ + # This program is under GPL license. See LICENSE file for details. + + # Convert to TeX +-$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS ++$SGML_JADE -t tex -o "${SGML_FILE_NAME}.tex" $SGML_ARGUMENTS "$SGML_FILE" + if [ $? -ne 0 ] + then exit 1 + fi +--- Original/backends/txt 2004-02-11 14:58:03.000000000 +0100 ++++ Changes/backends/txt 2007-05-21 14:22:33.000000000 +0200 +@@ -23,7 +23,7 @@ + trap 'rm -f "$HTML"; exit' 0 1 2 3 7 13 15 + + # Convert to HTML +-$SGML_JADE -V nochunks -t sgml ${SGML_ARGUMENTS} >${HTML} ++$SGML_JADE -V nochunks -t sgml ${SGML_ARGUMENTS} "$SGML_FILE" >${HTML} + if [ $? -ne 0 ] + then exit 1 + fi +--- Original/bin/jw.in 2003-04-30 18:21:49.000000000 +0200 ++++ Changes/bin/jw.in 2007-05-21 14:28:58.000000000 +0200 +@@ -246,7 +246,7 @@ then + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 + fi +-if [ ! -s $SGML_FRONTEND ] ++if [ ! -s "$SGML_FRONTEND" ] + then + echo "`basename $0`: There is no frontend called \"$SGML_FRONTEND\"." >&2 + exit 2 +@@ -270,14 +270,14 @@ + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 + fi +-if [ ! -s $SGML_FILE ] ++if [ ! -s "$SGML_FILE" ] + then + echo "`basename $0`: Cannot open \"$SGML_FILE\"." >&2 + exit 3 + fi + + # Separate the file name and the extension (if any) +-SGML_FILE_NAME=`basename $SGML_FILE` ++SGML_FILE_NAME=`basename "$SGML_FILE"` + SGML_FILE_NAME=${SGML_FILE_NAME%.*} + + # Determine if we are in an XML file +@@ -416,7 +416,7 @@ + fi + + # Prepare the parser's arguments +-SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_WARNINGS $SGML_DECL $SGML_FILE" ++SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_WARNINGS $SGML_DECL" + + # Call the backend + echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`" +@@ -430,7 +430,7 @@ + then + sh $SGML_BACKEND + else +- sh $SGML_BACKEND >$SGML_FILE_NAME.html ++ sh $SGML_BACKEND >"$SGML_FILE_NAME.html" + fi + SGML_RETURN=$? + cd "$SGML_CURRENT_DIRECTORY" +diff -urNp docbook-utils-0.6.14-orig/backends/man.in docbook-utils-0.6.14/backends/man.in +--- docbook-utils-0.6.14-orig/backends/man.in 2003-02-11 13:56:23.000000000 +0100 ++++ docbook-utils-0.6.14/backends/man.in 2009-07-24 15:07:04.000000000 +0200 +@@ -7,7 +7,7 @@ HELPER=$SGML_BASE_DIR/docbook/utils-@VER + TMPDIR=`mktemp -d /tmp/man.XXXXXX` || \ + { echo >&2 "man backend: could not create secure temporary directory"; exit 1;} + trap 'rm -rf "${TMPDIR}"' EXIT +-nsgmls $SGML_FILE > "${TMPDIR}/nsgmls.tmp" ++nsgmls "$SGML_FILE" > "${TMPDIR}/nsgmls.tmp" + sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp" 2>"${TMPDIR}/errs" + if [ $? -ne 0 ] + then +diff -urNp docbook-utils-0.6.14-orig/backends/texi.in docbook-utils-0.6.14/backends/texi.in +--- docbook-utils-0.6.14-orig/backends/texi.in 2002-08-05 23:20:56.000000000 +0200 ++++ docbook-utils-0.6.14/backends/texi.in 2009-07-24 15:08:02.000000000 +0200 +@@ -3,7 +3,7 @@ + # This program is under GPL license. See LICENSE file for details. + + # Convert to texinfo +-nsgmls $SGML_FILE | sgmlspl $SGML_BASE_DIR/docbook/utils-@VERSION@/helpers/docbook2texi-spec.pl >$SGML_FILE_NAME.texi ++nsgmls "$SGML_FILE" | sgmlspl $SGML_BASE_DIR/docbook/utils-@VERSION@/helpers/docbook2texi-spec.pl >$SGML_FILE_NAME.texi + if [ $? -ne 0 ] + then exit 1 + fi diff --git a/SOURCES/docbook-utils-grepnocolors.patch b/SOURCES/docbook-utils-grepnocolors.patch new file mode 100644 index 0000000..3cce39e --- /dev/null +++ b/SOURCES/docbook-utils-grepnocolors.patch @@ -0,0 +1,15 @@ +diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in +--- docbook-utils-0.6.14-orig/bin/jw.in 2008-11-28 10:53:09.000000000 +0100 ++++ docbook-utils-0.6.14/bin/jw.in 2008-11-28 11:22:28.000000000 +0100 +@@ -81,9 +81,9 @@ SGML_CATALOGS_DIR="/etc/sgml" + if [ -f "$SGML_CONF" ] + then + RE='^[:space:]*SGML_BASE_DIR[:space:]*=[:space:]*' +- SGML_BASE_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"` ++ SGML_BASE_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"` + RE='^[:space:]*SGML_CATALOGS_DIR[:space:]*=[:space:]*' +- SGML_CATALOGS_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"` ++ SGML_CATALOGS_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"` + fi + + # Set frontend to use diff --git a/SOURCES/docbook-utils-newgrep.patch b/SOURCES/docbook-utils-newgrep.patch new file mode 100644 index 0000000..a2c3591 --- /dev/null +++ b/SOURCES/docbook-utils-newgrep.patch @@ -0,0 +1,24 @@ +diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in +--- docbook-utils-0.6.14-orig/bin/jw.in 2010-09-28 18:18:39.567895321 +0200 ++++ docbook-utils-0.6.14/bin/jw.in 2010-09-28 18:23:25.849756994 +0200 +@@ -80,9 +80,9 @@ SGML_BASE_DIR="@prefix@/share/sgml" + SGML_CATALOGS_DIR="/etc/sgml" + if [ -f "$SGML_CONF" ] + then +- RE='^[:space:]*SGML_BASE_DIR[:space:]*=[:space:]*' ++ RE='^[[:space:]]*SGML_BASE_DIR[[:space:]]*=[[:space:]]*' + SGML_BASE_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"` +- RE='^[:space:]*SGML_CATALOGS_DIR[:space:]*=[:space:]*' ++ RE='^[[:space:]]*SGML_CATALOGS_DIR[[:space:]]*=[[:space:]]*' + SGML_CATALOGS_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"` + fi + +@@ -312,7 +312,7 @@ case $SGML_STANDARD_CATALOGS in + SGML_CATALOG_FILES=$SGML_CENTRALIZED_CATALOG + else + SGML_CATALOG_FILES=`find $SGML_BASE_DIR -name catalog` +- SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | tr [:space:] :` ++ SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | tr [[:space:]] :` + fi + ;; + no) SGML_CATALOG_FILES="" diff --git a/SOURCES/docbook-utils-nofinalecho.patch b/SOURCES/docbook-utils-nofinalecho.patch new file mode 100644 index 0000000..5787b97 --- /dev/null +++ b/SOURCES/docbook-utils-nofinalecho.patch @@ -0,0 +1,12 @@ +diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in +--- docbook-utils-0.6.14-orig/bin/jw.in 2010-05-31 16:21:46.379401250 +0200 ++++ docbook-utils-0.6.14/bin/jw.in 2010-05-31 16:23:55.348413466 +0200 +@@ -438,5 +438,7 @@ cd "$SGML_CURRENT_DIRECTORY" + if [ $SGML_RETURN -gt 0 ] + then exit `expr 7 + $SGML_RETURN` + fi +-echo "Done." ++#Final echo commented out, it causes manpage noise when generating some ++#manpages with new perl(#513271, #587012) ++#echo "Done." + exit 0 diff --git a/SOURCES/docbook-utils-papersize.patch b/SOURCES/docbook-utils-papersize.patch new file mode 100644 index 0000000..74e5007 --- /dev/null +++ b/SOURCES/docbook-utils-papersize.patch @@ -0,0 +1,12 @@ +diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in +--- docbook-utils-0.6.14-orig/bin/jw.in 2009-10-07 14:41:19.000000000 +0200 ++++ docbook-utils-0.6.14/bin/jw.in 2009-10-07 14:45:22.000000000 +0200 +@@ -368,7 +368,7 @@ case "$SGML_OPTIONS" in + fi + if [ -n "$papersize" ] + then +- SGML_OPTIONS="-V paper-type=$papersize $SGML_OPTIONS" ++ SGML_OPTIONS="-V %paper-type%=$papersize $SGML_OPTIONS" + fi + ;; + esac diff --git a/SOURCES/docbook-utils-rtfmanpage.patch b/SOURCES/docbook-utils-rtfmanpage.patch new file mode 100644 index 0000000..f37873b --- /dev/null +++ b/SOURCES/docbook-utils-rtfmanpage.patch @@ -0,0 +1,15 @@ +diff -urNp docbook-utils-0.6.14-orig/doc/man/jw.1 docbook-utils-0.6.14/doc/man/jw.1 +--- docbook-utils-0.6.14-orig/doc/man/jw.1 2004-02-11 15:16:21.000000000 +0100 ++++ docbook-utils-0.6.14/doc/man/jw.1 2009-08-13 10:44:03.000000000 +0200 +@@ -192,6 +192,11 @@ by calling \fBJade\fR or + \fBOpenJade\fR\&. The resulting file can + then be inported into \fBMS Word\fR + or one of its Linux replacement programs. ++ ++\fBNote\fR - The original picture must be ++present when RTF document is viewed, because ++the RTF documents created by \fBOpenJade\fR ++includes pictures by reference. + .TP + \fB\fItex\fB\fR + Converts to TeX by calling \fBJade\fR or diff --git a/SOURCES/docbook-utils-sgmlinclude.patch b/SOURCES/docbook-utils-sgmlinclude.patch new file mode 100644 index 0000000..4275b6b --- /dev/null +++ b/SOURCES/docbook-utils-sgmlinclude.patch @@ -0,0 +1,24 @@ +diff -urNp docbook-utils-0.6.14-orig/backends/man.in docbook-utils-0.6.14/backends/man.in +--- docbook-utils-0.6.14-orig/backends/man.in 2009-07-24 15:17:42.000000000 +0200 ++++ docbook-utils-0.6.14/backends/man.in 2009-07-24 15:20:57.000000000 +0200 +@@ -7,7 +7,7 @@ HELPER=$SGML_BASE_DIR/docbook/utils-@VER + TMPDIR=`mktemp -d /tmp/man.XXXXXX` || \ + { echo >&2 "man backend: could not create secure temporary directory"; exit 1;} + trap 'rm -rf "${TMPDIR}"' EXIT +-nsgmls "$SGML_FILE" > "${TMPDIR}/nsgmls.tmp" ++nsgmls ${SGML_INCLUDE} "$SGML_FILE" > "${TMPDIR}/nsgmls.tmp" + sgmlspl $HELPER <"${TMPDIR}/nsgmls.tmp" 2>"${TMPDIR}/errs" + if [ $? -ne 0 ] + then +diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in +--- docbook-utils-0.6.14-orig/bin/jw.in 2009-07-24 15:17:42.000000000 +0200 ++++ docbook-utils-0.6.14/bin/jw.in 2009-07-24 15:18:51.000000000 +0200 +@@ -423,7 +423,7 @@ echo "Using catalogs: `echo $SGML_CATALO + echo "Using stylesheet: $SGML_STYLESHEET" + echo "Working on: $SGML_FILE" + cd "$SGML_OUTPUT_DIRECTORY" +-export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS ++export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS SGML_INCLUDE + export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET + NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks` + if [ -z "$NOCHUNKS" ] diff --git a/SOURCES/docbook-utils-spaces.patch b/SOURCES/docbook-utils-spaces.patch new file mode 100644 index 0000000..4c18b1d --- /dev/null +++ b/SOURCES/docbook-utils-spaces.patch @@ -0,0 +1,32 @@ +--- docbook-utils-0.6.14/bin/jw.in.spaces 2003-04-30 17:21:49.000000000 +0100 ++++ docbook-utils-0.6.14/bin/jw.in 2004-08-19 09:33:34.989426640 +0100 +@@ -405,9 +405,9 @@ + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 + fi +-if [ ! -d $SGML_OUTPUT_DIRECTORY ] ++if [ ! -d "$SGML_OUTPUT_DIRECTORY" ] + then +- mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null ++ mkdir "$SGML_OUTPUT_DIRECTORY" 2>/dev/null + if [ $? -ne 0 ] + then + echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2 +@@ -422,7 +422,7 @@ + echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`" + echo "Using stylesheet: $SGML_STYLESHEET" + echo "Working on: $SGML_FILE" +-cd $SGML_OUTPUT_DIRECTORY ++cd "$SGML_OUTPUT_DIRECTORY" + export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS + export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET + NOCHUNKS=`echo $SGML_OPTIONS | grep nochunks` +@@ -433,7 +433,7 @@ + sh $SGML_BACKEND >$SGML_FILE_NAME.html + fi + SGML_RETURN=$? +-cd $SGML_CURRENT_DIRECTORY ++cd "$SGML_CURRENT_DIRECTORY" + + if [ $SGML_RETURN -gt 0 ] + then exit `expr 7 + $SGML_RETURN` diff --git a/SOURCES/docbook-utils-w3mtxtconvert.patch b/SOURCES/docbook-utils-w3mtxtconvert.patch new file mode 100644 index 0000000..249af8e --- /dev/null +++ b/SOURCES/docbook-utils-w3mtxtconvert.patch @@ -0,0 +1,12 @@ +diff -urNp original/txt new/txt +--- original/backends/txt 2007-11-05 18:44:52.000000000 +0100 ++++ new/backends/txt 2007-11-22 15:21:36.000000000 +0100 +@@ -13,7 +13,7 @@ then + elif [ -x /usr/bin/w3m ] + then + CONVERT=/usr/bin/w3m +- ARGS="-dump" ++ ARGS="-T text/html -dump" + else + echo >&2 "No way to convert HTML to text found." + exit 1 diff --git a/SOURCES/docbook2man-spec.pl b/SOURCES/docbook2man-spec.pl new file mode 100755 index 0000000..58939cb --- /dev/null +++ b/SOURCES/docbook2man-spec.pl @@ -0,0 +1,1564 @@ +=head1 NAME + +docbook2man-spec.pl - convert DocBook RefEntries to Unix manpages + +=head1 SYNOPSIS + +The sgmlspl script from the SGMLSpm Perl module must be used to run +this script. Use it like this: + +nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl + +See man page or included DocBook documentation for details. + +=head1 DESCRIPTION + +This is a sgmlspl spec file that produces Unix-style +man pages from DocBook RefEntry markup. + +=head1 COPYRIGHT + +Copyright (C) 1998-2001 Steve Cheng + +Copyright (C) 1999 Thomas Lockhart + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +You should have received a copy of the GNU General Public License along with +this program; see the file COPYING. If not, please write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +=cut + +# $Id: docbook2man-spec.pl,v 1.11 2010/10/04 10:23:31 ovasik Exp $ + +use SGMLS; # Use the SGMLS package. +use SGMLS::Output; # Use stack-based output. +use SGMLS::Refs; + + +######################################################################## +# SGMLSPL script produced automatically by the script sgmlspl.pl +# +# Document Type: any, but processes only RefEntries +# Edited by: me :) +######################################################################## + + +$write_manpages = 0; +$blank_xrefs = 0; + +$default_sect = "1"; +$default_date = `date "+%d %B %Y"`; +$cite_numeral_only = 1; + +while (@ARGV) { + my $arg = shift @ARGV; + if ($arg eq "--section") { + $default_sect = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--date") { + $default_date = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--lowercase") { + $lowercase_names = 1; + } elsif ($arg eq "--preserve-case") { + $lowercase_names = 0; + } elsif ($arg eq "--cite-numeral-only") { + $cite_numeral_only = 1; + } elsif ($arg eq "--nocite-numeral-only") { + $cite_numeral_only = 0; + } elsif ($arg eq "--help") { + print "Usage: $0", + " [ --section