diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-10 13:10:28 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-10 13:10:28 +0000 |
commit | 9bdd9f27ea5243115a8b2f0aa891bfdf6dfdddf1 (patch) | |
tree | d854e398fa7c3bb51d3d429ef36a0b75a7dffeb7 /Master/bin/amd64-freebsd/fixtpps | |
parent | dbd8f0679bc5e9ceaab187cc83700f4b383f81fe (diff) |
change into linked scripts
git-svn-id: svn://tug.org/texlive/trunk@21010 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/amd64-freebsd/fixtpps')
l---------[-rwxr-xr-x] | Master/bin/amd64-freebsd/fixtpps | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/Master/bin/amd64-freebsd/fixtpps b/Master/bin/amd64-freebsd/fixtpps index 4239bb9dfc5..10cd40fcc78 100755..120000 --- a/Master/bin/amd64-freebsd/fixtpps +++ b/Master/bin/amd64-freebsd/fixtpps @@ -1,28 +1 @@ -#!/usr/bin/env perl -# fixtpps: fix tpscript document to work with PSUtils -# -# Copyright (C) Angus J. C. Duggan 1991-1995 -# See file LICENSE for details. - -$nesting = 0; -$header = 1; - -while (<>) { - if (/^%%Page:/ && $nesting == 0) { - print $_; - print "save home\n"; - $header = 0; - } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/) { - print $_; - $nesting++; - } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { - print $_; - $nesting--; - } elsif (/save home/) { - s/save home//; - print $_; - } elsif (!$header || (! /^save$/ && ! /^home$/)) { - print $_; - } -} - +../../texmf/scripts/psutils/fixtpps.pl
\ No newline at end of file |