aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bin/make-compose-makefile
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-10-18 20:01:19 +0000
committerN.N. <matju@users.sourceforge.net>2009-10-18 20:01:19 +0000
commitccddec68116fc6403858ebfa13d4a7b1aa3d5278 (patch)
tree6b90e41b15bbf2440afa76d53cc436debf5b5c5b /externals/gridflow/bin/make-compose-makefile
parenta1fb215b39535805aa19608185d5e52c0f524b42 (diff)
hi gridflow 0.9.5
svn path=/trunk/; revision=12611
Diffstat (limited to 'externals/gridflow/bin/make-compose-makefile')
-rwxr-xr-xexternals/gridflow/bin/make-compose-makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/externals/gridflow/bin/make-compose-makefile b/externals/gridflow/bin/make-compose-makefile
new file mode 100755
index 00000000..f7e5abca
--- /dev/null
+++ b/externals/gridflow/bin/make-compose-makefile
@@ -0,0 +1,30 @@
+#!/usr/bin/env ruby
+
+f = File.read("../compose-8859-1.pdd").split(/\s*;\s*/)
+g = File.open("Makefile","w")
+g.puts "default:: all"
+g.puts ""
+list = []
+
+[94,96,126,168,176,180,184].each {|a|
+ g.puts "#{a}u.hpgl: #{a}.hpgl Makefile"
+ dy = (if a==184 then 0 else 100 end)
+ g.puts "\t../../bin/hpgl_move 0 #{dy} < #{a}.hpgl > #{a}u.hpgl"
+ list << "#{a}u.hpgl"
+}
+
+f.each {|char|
+ a,b,c = char.split(/\s+/).map {|x| Integer x }
+ [0,32].each {|o|
+ d = c.to_s + (if o==0 and c>47 then "u" else "" end)
+ g.puts "#{a+o}.hpgl: #{b+o}.hpgl #{d}.hpgl Makefile"
+ g.puts "\tcat #{b+o}.hpgl #{d}.hpgl > #{a+o}.hpgl"
+ g.puts ""
+ list << "#{a+o}.hpgl"
+ }
+}
+
+g.puts "all:: "+list.join(" ")
+g.puts ""
+g.puts "clean::"
+g.puts "\trm "+list.join(" ")