diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-10 11:11:17 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-10 11:11:17 +0000 |
commit | 30be42ace99ca88d8a40301534b9f249d1b09d8c (patch) | |
tree | 0fffe7facd4c43fd76a78c11a44f1a52310f202a /Master/texmf/scripts/psutils/fixwwps.pl | |
parent | eacdb9d26d0740b92e709b25cd63d883c41162c4 (diff) |
chktex, ps2eps, psutils: install linked perl scripts
update ps2eps to 1.68
git-svn-id: svn://tug.org/texlive/trunk@21003 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/psutils/fixwwps.pl')
-rwxr-xr-x | Master/texmf/scripts/psutils/fixwwps.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf/scripts/psutils/fixwwps.pl b/Master/texmf/scripts/psutils/fixwwps.pl new file mode 100755 index 00000000000..bfd58c086da --- /dev/null +++ b/Master/texmf/scripts/psutils/fixwwps.pl @@ -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 $_; + } +} + |