docs/cut

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ms2pdf	Tue Nov 10 21:13:22 2015 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +if [ $# -ne 1 ] ; then
     1.7 +	echo "Usage: ${0%%*/} foo.ms" >&2
     1.8 +	exit 1
     1.9 +fi
    1.10 +
    1.11 +export TROFFONTS=/home/meillo/fonts/
    1.12 +<"$1" tbl | pic | troff -ms | dpost |
    1.13 +	ps2pdf -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress - "${1%%.ms}.pdf"