diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-07 17:13:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-07 17:13:19 +0000 |
commit | 09272d5b17e3f64de89b93da1b07432bbde91f7e (patch) | |
tree | 831de66d145c039e346beb7a7aa37aab5a7f83ad /Master/texmf-dist/doc/generic/m-tx/pdfcat | |
parent | b3e432d97b1ba9591851b1d5f645bb618728bc36 (diff) |
m-tx 0.62 (no more m-tx script)
git-svn-id: svn://tug.org/texlive/trunk@40305 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/m-tx/pdfcat')
-rwxr-xr-x | Master/texmf-dist/doc/generic/m-tx/pdfcat | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/m-tx/pdfcat b/Master/texmf-dist/doc/generic/m-tx/pdfcat new file mode 100755 index 00000000000..fd773f76903 --- /dev/null +++ b/Master/texmf-dist/doc/generic/m-tx/pdfcat @@ -0,0 +1,32 @@ +#!/bin/sh + +# pdfcat.sh +# Thanks to Christian Mondrup for this script + +FILENAME=`basename $0` + +USAGE="Usage: $FILENAME [-a (A4 paper)] -o outputfile -i \"inputfile1 inputfile12 ...\"" + +if [ $# -le 3 ] +then + echo $USAGE + exit 2 +fi + +GSARGS="-q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite" + +while getopts "i:o:a" ARG_STRING +do + case $ARG_STRING in + a) GSARGS="-sPAPERSIZE=a4 $GSARGS" + ;; + i) INPUTFILES=$OPTARG + ;; + o) OUTPUTNAME=$OPTARG + ;; + *) echo $USAGE + exit 2;; + esac +done + +gs $GSARGS -sOutputFile=$OUTPUTNAME $INPUTFILES |