summaryrefslogtreecommitdiff
path: root/sysutils/du2ps/files/patch-ab
blob: 7e89446054767fd8daa0290a2a6c52bae7b7e10c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- getopt.c.orig	Wed Mar 16 11:41:27 1994
+++ getopt.c	Fri Jun  1 15:40:02 2001
@@ -22,6 +22,7 @@
 	"du2ps [options] < infile > outfile",
 	"OPTIONS:",
 	"  -land       ... landscape",
+	"  -a3         ... A3",
 	"  -b4         ... B4",
 	"  -b5         ... B5",
 	"  -us         ... US letter",
@@ -62,6 +63,10 @@
 			i++;
 		} else if(!strcmp("-sa", argv[i])){
 			cmp = cmp_alph;
+			i++;
+		} else if(!strcmp("-a3", argv[i])){
+			paper_width = A3_WIDTH;
+			paper_height = A3_HEIGHT;
 			i++;
 		} else if(!strcmp("-b4", argv[i])){
 			paper_width = B4_WIDTH;