~ubuntu-branches/ubuntu/raring/texlive-extra/raring

« back to all changes in this revision

Viewing changes to texmf-dist/doc/generic/m-tx/mtx060/pdfcat

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-16 08:22:07 UTC
  • mfrom: (1.1.12) (3.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120516082207-41ox35jj1qsu46a7
Tags: 2012.20120516-1
* new upstream snapshot based on TL2012 tlpretest
* switch to xz compression for orig and deb (Closes: #672428)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# pdfcat.sh
 
4
# Thanks to Christian Mondrup for this script
 
5
 
 
6
FILENAME=`basename $0`
 
7
 
 
8
USAGE="Usage: $FILENAME [-a (A4 paper)] -o outputfile -i \"inputfile1 inputfile12 ...\""
 
9
 
 
10
if [ $# -le 3 ]
 
11
then
 
12
    echo $USAGE
 
13
    exit 2
 
14
fi 
 
15
 
 
16
GSARGS="-q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite"
 
17
 
 
18
while getopts "i:o:a" ARG_STRING
 
19
do
 
20
    case $ARG_STRING in
 
21
    a)  GSARGS="-sPAPERSIZE=a4 $GSARGS"
 
22
        ;;
 
23
    i)  INPUTFILES=$OPTARG
 
24
        ;;
 
25
    o)  OUTPUTNAME=$OPTARG
 
26
        ;;
 
27
    *)  echo $USAGE
 
28
        exit 2;;
 
29
    esac
 
30
done
 
31
 
 
32
gs $GSARGS -sOutputFile=$OUTPUTNAME $INPUTFILES