docs/cut

annotate ms2pdf @ 41:e2961496d097

Add script to generate the PDFs
author markus schnalke <meillo@marmaro.de>
date Tue, 10 Nov 2015 21:13:22 +0100
parents
children
rev   line source
meillo@41 1 #!/bin/sh
meillo@41 2
meillo@41 3 if [ $# -ne 1 ] ; then
meillo@41 4 echo "Usage: ${0%%*/} foo.ms" >&2
meillo@41 5 exit 1
meillo@41 6 fi
meillo@41 7
meillo@41 8 export TROFFONTS=/home/meillo/fonts/
meillo@41 9 <"$1" tbl | pic | troff -ms | dpost |
meillo@41 10 ps2pdf -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress - "${1%%.ms}.pdf"