summaryrefslogtreecommitdiff
path: root/Master/bin/mips-irix/fixfmps
diff options
context:
space:
mode:
authorOlaf Weber <olaf@infovore.xs4all.nl>2007-01-01 11:54:51 +0000
committerOlaf Weber <olaf@infovore.xs4all.nl>2007-01-01 11:54:51 +0000
commitc3ef295937d604389c1ce7f325138611b2c7e653 (patch)
treeca9177ea1822f78e641c186e6e0e88b918947a41 /Master/bin/mips-irix/fixfmps
parent90afab3aa815f233aaf0d515eb8a886fabbc635b (diff)
Update of mips-irix binaries part 2: adding updated binaries.
git-svn-id: svn://tug.org/texlive/trunk@3088 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/mips-irix/fixfmps')
-rwxr-xr-xMaster/bin/mips-irix/fixfmps21
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/bin/mips-irix/fixfmps b/Master/bin/mips-irix/fixfmps
new file mode 100755
index 00000000000..039ac8e5a3e
--- /dev/null
+++ b/Master/bin/mips-irix/fixfmps
@@ -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 $_;
+ }
+}
+