File: do-psnup

package info (click to toggle)
iproute 20041019-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,556 kB
  • ctags: 2,578
  • sloc: ansic: 23,116; sh: 1,680; cpp: 602; yacc: 251; makefile: 224; perl: 101
file content (16 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
# $1 = Temporary file . "string"
# $2 = File to process . "string"
# $3 = Page size . ie: a4 , letter ... "string"
# $4 = Number of pages to fit on a single sheet . "numeric"

if type psnup >&/dev/null; then
	echo "psnup -$4 -p$3 $1 $2"
	psnup -$4 -p$3 $1 $2
elif type psmulti >&/dev/null; then
	echo "psmulti $1 > $2"
	psmulti $1 > $2
else
	echo "cp $1 $2"
	cp $1 $2
fi