summaryrefslogtreecommitdiff
path: root/Master/bin/win32/fixwwps.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32/fixwwps.bat')
-rwxr-xr-xMaster/bin/win32/fixwwps.bat20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/bin/win32/fixwwps.bat b/Master/bin/win32/fixwwps.bat
new file mode 100755
index 00000000000..bee29ef56a8
--- /dev/null
+++ b/Master/bin/win32/fixwwps.bat
@@ -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@