summaryrefslogtreecommitdiff
path: root/bin/strip-eps
diff options
context:
space:
mode:
authorivan <ivan>2007-06-29 01:27:15 +0000
committerivan <ivan>2007-06-29 01:27:15 +0000
commitc4f2fbb56b1eb503b6070ed3eac9b550b94dc410 (patch)
tree4de08a16a5fc17d478e353898cab7b546f3160d8 /bin/strip-eps
parentca63c29a40e2c7ad13558eb204fbb6764bf7a351 (diff)
removing create-history-tables, freeside-upgrade does this anyway
Diffstat (limited to 'bin/strip-eps')
-rwxr-xr-xbin/strip-eps20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/strip-eps b/bin/strip-eps
new file mode 100755
index 0000000..2c2d124
--- /dev/null
+++ b/bin/strip-eps
@@ -0,0 +1,20 @@
+#!/usr/bin/perl -w
+
+# Author: Andy Turner <andrew.turner@acadia.net>
+
+use strict;
+
+# The first line has some binary magic for file identification
+# purposes. GhostScript doesn't like it. Strip it.
+scalar <>;
+
+# Add a header so that we can use magic to determine the file type.
+print "%!PS-Adobe-3.0 EPSF-3.0\n";
+
+while (<>) {
+ print;
+
+ # Illustrator Version 7 format EPS files have a bunch of binary gook
+ # after the "%%EOF" line. (% is a comment in PostScript, right?)
+ last if /^%%EOF/;
+}