summaryrefslogtreecommitdiff
path: root/Master/bin/alpha-linux/fixwwps
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-03-17 18:50:53 +0000
committerKarl Berry <karl@freefriends.org>2008-03-17 18:50:53 +0000
commit9c77e69689b13554caeebaf623e234527ca996d0 (patch)
treec5fc452b91d0d427623801fef42786c660ed59a6 /Master/bin/alpha-linux/fixwwps
parentc4d4f12b494d04f6b41bc6e21a4a1d90944c25dc (diff)
restore alpha-linux
git-svn-id: svn://tug.org/texlive/trunk@6987 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/alpha-linux/fixwwps')
-rwxr-xr-xMaster/bin/alpha-linux/fixwwps20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/bin/alpha-linux/fixwwps b/Master/bin/alpha-linux/fixwwps
new file mode 100755
index 00000000000..bfd58c086da
--- /dev/null
+++ b/Master/bin/alpha-linux/fixwwps
@@ -0,0 +1,20 @@
+#!/usr/bin/env 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 $_;
+ }
+}
+