Mercurial > docs > cut
annotate ms2pdf @ 41:e2961496d097 default tip
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 |
---|---|
41
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
1 #!/bin/sh |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
2 |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
3 if [ $# -ne 1 ] ; then |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
4 echo "Usage: ${0%%*/} foo.ms" >&2 |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
5 exit 1 |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
6 fi |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
7 |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
8 export TROFFONTS=/home/meillo/fonts/ |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
9 <"$1" tbl | pic | troff -ms | dpost | |
e2961496d097
Add script to generate the PDFs
markus schnalke <meillo@marmaro.de>
parents:
diff
changeset
|
10 ps2pdf -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress - "${1%%.ms}.pdf" |