Proofreading Content
[ccbib.git] / psutils / fixwwps.pl
bloba0096998b830d381b0336aa781a4ce159ba0163f
1 @PERL@
2 # fixwwps: get semi-conforming PostScript out of Windows Write file
4 # Copyright (C) Angus J. C. Duggan 1991-1995
5 # See file LICENSE for details.
7 $page = 1;
9 while (<>) {
10 if (/^(%!.*) EPSF-\d.\d/) {
11 print $1, "\n";
12 } elsif (/^SS/) {
13 print "%%Page: $page $page\n";
14 print $_;
15 $page++;
16 } else {
17 print $_;
20 @END@