[project @ 2001-10-30 19:01:43 by rrt]
[ghc-hetmet.git] / glafp-utils / docbook / db2pdf.dir / db2pdf.sh
index b657ae4..82d6798 100644 (file)
@@ -33,15 +33,18 @@ fi
 
 $JADE -t tex -d ${DB_STYLESHEET}\#print -o ${output}.tex -c $DOCBOOK_CATALOG $1
 
-pdfjadetex ${output}
+jadetex ${output}
 
-# See if running pdfjadetex twice cures the problem.
+# See if running jadetex twice cures the problem.
 if egrep '^LaTeX Warning: There were undefined references.$' ${TMPFN}.log >/dev/null 2>&1
 then
-  pdfjadetex ${output}
-  pdfjadetex ${output}
+  jadetex ${output}
+  jadetex ${output}
 fi
 
+dvips ${output}.dvi ${output}.ps
+ps2pdf ${output}.ps ${output}.pdf
+
 # clean out 
 rm -f ${output}.log
 rm -f ${output}.aux