home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
APPS
/
TEKST
/
PSUTILS
/
FIXFMPS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-01-14
|
467b
|
21 lines
extproc perl -Sx
#!perl
# fixfmps: get conforming PostScript out of FrameMaker version 2 file
# move all FMDEFINEFONTs to start of pages
# feed this into perl
eval 'exec perl -S $0 "$@"'
if $running_under_some_shell;
%fonts=();
while (<>) {
if (/^([0-9]+) [0-9]+ .* FMDEFINEFONT$/) {
$fonts{$1} = $_;
} elsif (/^[0-9.]+ [0-9.]+ [0-9]+ FMBEGINPAGE$/) {
print $_, join('',values(%fonts));
} else {
print $_;
}
}