From 2fb5a4418dfdb4235b9c1f2eb37590fabad634b0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 17 Mar 2008 18:58:48 +0000 Subject: restore sparc-solaris git-svn-id: svn://tug.org/texlive/trunk@7000 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/sparc-solaris/fixscribeps | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 Master/bin/sparc-solaris/fixscribeps (limited to 'Master/bin/sparc-solaris/fixscribeps') diff --git a/Master/bin/sparc-solaris/fixscribeps b/Master/bin/sparc-solaris/fixscribeps new file mode 100755 index 00000000000..bd4e9a0e3e0 --- /dev/null +++ b/Master/bin/sparc-solaris/fixscribeps @@ -0,0 +1,19 @@ +#!/usr/bin/env perl +# fixscribeps: get conforming PostScript out of Scribe +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$inepsf = 0; +$epsfn = 0; +while (<>) { + if (/^([0-9]+ [0-9]+ [0-9]+ PB) (%!.*)/) { + print "$1\n%%BeginDocument: Scribe-EPSF $epsfn 0\n$2\n"; + $inepsf++; + } elsif (/^ PE/ && $inepsf) { + print "%%EndDocument\n", $_; + } else { + print $_; + } +} + -- cgit v1.2.3