From 30be42ace99ca88d8a40301534b9f249d1b09d8c Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 10 Jan 2011 11:11:17 +0000 Subject: 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 --- Master/texmf/scripts/psutils/fixwwps.pl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 Master/texmf/scripts/psutils/fixwwps.pl (limited to 'Master/texmf/scripts/psutils/fixwwps.pl') 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 $_; + } +} + -- cgit v1.2.3