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