#!/bin/sh # Script to print f2k draft to pdf files. # # Uses the print-pdf.doc file from the scripts-sun subdir as a # template to do print-to-file. # Ignore all the warning messages about not using some # stuff from the print template file. The message is irrelevant, # but there doesn't seem to be a way to turn it off. # # Also uses the linenum2 program from the scripts-sun subdir. # # The defaults write the toc, lof, and lot all to the same file name, # so we do them one at a time and move the files. # # The sleeps are to wait for fmprint to complete; # it seems to spool "print-to-file" operations, # which causes a mess if we continue before its done. # # Run this from the scripts-sun directory FMPRINT=/opt/frame55/bin/fmprint cd ../frame55 # No line numbering for title or contents. $FMPRINT -p ../scripts-sun/print-pdf.doc title.doc sleep 60 mv title.pdf ../pdf $FMPRINT -p ../scripts-sun/print-pdf.doc f2kTOC.fm sleep 60 mv f2kTOC.pdf ../pdf/toc.pdf $FMPRINT -p ../scripts-sun/print-pdf.doc f2kLOT.fm sleep 60 mv f2kLOT.pdf ../pdf/lot.pdf $FMPRINT -p ../scripts-sun/print-pdf.doc f2kIX.fm sleep 60 mv f2kIX.pdf ../pdf/index.pdf $FMPRINT -p ../scripts-sun/print-pdf.doc \ intro.doc c*.doc a*.doc sleep 300 mv *.pdf ../pdf cd ../scripts-sun