--- sgml2x-1.0.0.orig/Makefile +++ sgml2x-1.0.0/Makefile @@ -102,7 +102,7 @@ bin/docbook-2-html ${DB2XOPTS} -s nwalsh $< %.txt: %-html - links -dump $$@ + elinks -no-home -dump $$@ clean:: rm -f *.ps *.pdf *.fot *~ --- sgml2x-1.0.0.orig/bin/rlatex +++ sgml2x-1.0.0/bin/rlatex @@ -5,27 +5,25 @@ LATEXPRG=${LATEXPRG:-latex} while true; do - pid=$$ - export pid - rm -f /tmp/rlok$pid - ( - if ${LATEXPRG} $* + RLSOTMP=$(mktemp /tmp/RLSO.XXXXXXXX) + RLOKTMP="xxx" + + if ${LATEXPRG} $* | tee $RLSOTMP then - touch /tmp/rlok$pid + RLOKTMP=$(mktemp /tmp/rlok.XXXXXXXX) fi - ) | tee /tmp/rlso$pid - if [ ! -f /tmp/rlok$pid ] - then - rm -f /tmp/rlso$pid + if [ $RLOKTMP = "xxx" ] + then echo >&2 "$(basename $0): Exiting in error" exit 1 - fi + fi - if ! grep -E '^(LaTeX Warning: (Label\(s\) may|There were undefined references)|Package longtable Warning: Table widths have changed)' /tmp/rlso$pid >/dev/null + if ! grep -E '^(LaTeX Warning: (Label\(s\) may|There were undefined references)|Package longtable Warning: Table widths have changed)' $RLSOTMP >/dev/null then - rm -f /tmp/rlso$pid + rm -f $RLSOTMP exit 0 fi echo "Re-running LaTeX" + rm -f $RLSOTMP $RLOKTMP done --- sgml2x-1.0.0.orig/bin/sgml2x +++ sgml2x-1.0.0/bin/sgml2x @@ -91,24 +91,24 @@ -C|--confdirs use (whitespace-separated) list of confdirs (cumulative) default: "${DEFAULTCONFDIRS}" - -r|--remarks include remarks in document -D|--dssslproc select the dsssl processor to use + -h|--help this help message -j|--jade [DEPRECATED] synonym for --dssslproc - -o|--openjade [DEPRECATED] use openjade to format (now the default) - -O|--jadeopts - pass additionnal options to jade (cumulative) --jadetexfilter a perl filter, with enough quotes (use -n to check) -n|--no-act print commands instead of running them + -o|--openjade [DEPRECATED] use openjade to format (now the default) + -O|--jadeopts + pass additionnal options to jade (cumulative) -q|--quiet set verbosity to 0 + -r|--remarks include remarks in document + -s|--style