diff options
author | N.N. <sevyves@users.sourceforge.net> | 2006-07-26 17:01:23 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2006-07-26 17:01:23 +0000 |
commit | 2005cba607270a0e176d739361cb6327fab061f7 (patch) | |
tree | cefe3df382f3217d55e6194da27d7ecaed8c39ec /pianoroll/tk2c.bash | |
parent | 8cb7fe69e2be0d5ed1811cda4a5ca4ed68046b55 (diff) |
fixed coordinates for GOP
svn path=/trunk/externals/unauthorized/; revision=5416
Diffstat (limited to 'pianoroll/tk2c.bash')
-rwxr-xr-x | pianoroll/tk2c.bash | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pianoroll/tk2c.bash b/pianoroll/tk2c.bash new file mode 100755 index 0000000..9dfeb03 --- /dev/null +++ b/pianoroll/tk2c.bash @@ -0,0 +1,24 @@ +#!/bin/bash + +#set -x + +while read line +do + for word in $line + do + if [ "X"$word != "X"${word#\#} ] + then + echo // ${line#\#} + break + else + line=${line//\'/\\\'} +#useless, slashes never gets in + line=${line//\\/\\\\} +#this one's dirty, i know + line=${line//;/\\\\;} + line=${line//\"/\\\"} + echo 'sys_gui("'$line'\n");' + break + fi + done +done |