osdl.org!shemminger | aba5acd | 2004-04-15 20:56:59 +0000 | [diff] [blame] | 1 | #! /bin/bash |
2 | # $1 = Temporary file . "string" | ||||
3 | # $2 = File to process . "string" | ||||
4 | # $3 = Page size . ie: a4 , letter ... "string" | ||||
5 | # $4 = Number of pages to fit on a single sheet . "numeric" | ||||
6 | |||||
7 | if type psnup >&/dev/null; then | ||||
8 | echo "psnup -$4 -p$3 $1 $2" | ||||
9 | psnup -$4 -p$3 $1 $2 | ||||
10 | elif type psmulti >&/dev/null; then | ||||
11 | echo "psmulti $1 > $2" | ||||
12 | psmulti $1 > $2 | ||||
13 | else | ||||
14 | echo "cp $1 $2" | ||||
15 | cp $1 $2 | ||||
16 | fi |