summaryrefslogtreecommitdiff
path: root/Build/source/utils/psutils/fixwwps.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/psutils/fixwwps.pl')
-rw-r--r--Build/source/utils/psutils/fixwwps.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/Build/source/utils/psutils/fixwwps.pl b/Build/source/utils/psutils/fixwwps.pl
new file mode 100644
index 00000000000..a0096998b83
--- /dev/null
+++ b/Build/source/utils/psutils/fixwwps.pl
@@ -0,0 +1,20 @@
+@PERL@
+# fixwwps: get semi-conforming PostScript out of Windows Write file
+#
+# Copyright (C) Angus J. C. Duggan 1991-1995
+# See file LICENSE for details.
+
+$page = 1;
+
+while (<>) {
+ if (/^(%!.*) EPSF-\d.\d/) {
+ print $1, "\n";
+ } elsif (/^SS/) {
+ print "%%Page: $page $page\n";
+ print $_;
+ $page++;
+ } else {
+ print $_;
+ }
+}
+@END@