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/fixfmps.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/fixfmps.pl')
-rwxr-xr-x | Master/texmf/scripts/psutils/fixfmps.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf/scripts/psutils/fixfmps.pl b/Master/texmf/scripts/psutils/fixfmps.pl new file mode 100755 index 00000000000..039ac8e5a3e --- /dev/null +++ b/Master/texmf/scripts/psutils/fixfmps.pl @@ -0,0 +1,21 @@ +#!/usr/bin/env perl +# fixfmps: get conforming PostScript out of FrameMaker version 2 file +# move all FMDEFINEFONTs to start of pages +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +%fonts=(); + +while (<>) { + if (/^([0-9]+) [0-9]+ .* FMDEFINEFONT$/) { + $fonts{$1} = $_; + } elsif (/^[0-9.]+ [0-9.]+ [0-9]+ FMBEGINPAGE$/) { + print $_, join('',values(%fonts)); + } elsif (m%(.*/PageSize \[paperwidth paperheight\]put )setpagedevice(.*)%) { + print "$1pop$2\n"; + } else { + print $_; + } +} + |