1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/sysutils/du2ps/files/patch-ab
OKAZAKI Tetsurou 88f263f5c0 Add du2ps 2.1, filter for converting output of du to PostScript file.
PR:		27848
Submitted by:	Yoshihiko Sarumaru <mistral@imasy.or.jp>
2001-06-26 21:03:15 +00:00

22 lines
566 B
Plaintext

--- 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;