summaryrefslogtreecommitdiff
path: root/packaging/SGI/psfixes.pl
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1997-10-24 18:41:08 +0000
committerHerb Lewis <herb@samba.org>1997-10-24 18:41:08 +0000
commitf492bd51a61cbe6dd4f1971491b760fc7ebd2554 (patch)
tree3853b7c61ae9b9ec78134add6c2ae3ddddc32b57 /packaging/SGI/psfixes.pl
parentbf5b060bd9d210efe95b3529dfba98c5c49716e0 (diff)
downloadsamba-f492bd51a61cbe6dd4f1971491b760fc7ebd2554.tar.gz
update SGI build files to latest source
Diffstat (limited to 'packaging/SGI/psfixes.pl')
-rwxr-xr-xpackaging/SGI/psfixes.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/packaging/SGI/psfixes.pl b/packaging/SGI/psfixes.pl
new file mode 100755
index 00000000000..c64b67c8d40
--- /dev/null
+++ b/packaging/SGI/psfixes.pl
@@ -0,0 +1,28 @@
+#!/usr/bin/perl
+
+$found_vm = 0;
+
+while (<>) {
+ if (not $found_vm) {
+ if (not /^%/) {
+ if (/^%%Title:/) {
+ s/. $/ /;
+ print;
+ }
+ else {
+ if (/^\/VM?/) {
+ print "/VM? { pop } bind def \n";
+ $found_vm = 1;
+ }
+ else {
+ print;
+ }
+ }
+ }
+ }
+ else {
+ if (/def /) {
+ $found_vm = 0;
+ }
+ }
+}