aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bin/hpgl_move
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-11-06 18:33:57 +0000
committerN.N. <matju@users.sourceforge.net>2009-11-06 18:33:57 +0000
commit5e6bb4f4786dd39158ffe02913590cc3dea21ebd (patch)
tree17f4c83372dc450503e3106db11c473c513ab7c0 /externals/gridflow/bin/hpgl_move
parentb4432042844d0a29f7b654245f9c17da950cd33e (diff)
remove gridflow 0.9.5
svn path=/trunk/; revision=12727
Diffstat (limited to 'externals/gridflow/bin/hpgl_move')
-rwxr-xr-xexternals/gridflow/bin/hpgl_move19
1 files changed, 0 insertions, 19 deletions
diff --git a/externals/gridflow/bin/hpgl_move b/externals/gridflow/bin/hpgl_move
deleted file mode 100755
index f4bf0534..00000000
--- a/externals/gridflow/bin/hpgl_move
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env ruby
-# Copyright (c) 2009 by Mathieu Bouchard
-
-x = Float ARGV[0]
-y = Float ARGV[1]
-
-puts STDIN.read.split(/\s*;\s*/).map {|m|
- h = m.slice!(0,2)
- d = m.split(",")
- case h
- when "PA","PD","PU"
- (0...d.length).each {|i|
- off = if i%2==0 then x else y end
- v = Float(d[i])+off
- d[i] = if v==v.to_i then v.to_i else v.to_f end
- }
- end
- h+d.join(",")
-}.join(";")