aboutsummaryrefslogtreecommitdiff
path: root/modules/tk2c.bash
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2004-05-18 00:58:15 +0000
committerN.N. <sevyves@users.sourceforge.net>2004-05-18 00:58:15 +0000
commit607f5de1bd0ff0452f940772d3391fe0418de6c8 (patch)
tree112b1449f1b75e26d19629acc1ffdc286b629ba4 /modules/tk2c.bash
parent07d4617fc2d96022fd097f8785dfca6206b1c6df (diff)
Colorgrid object by Lluis Gomez
svn path=/trunk/externals/pidip/; revision=1736
Diffstat (limited to 'modules/tk2c.bash')
-rwxr-xr-xmodules/tk2c.bash24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/tk2c.bash b/modules/tk2c.bash
new file mode 100755
index 0000000..9dfeb03
--- /dev/null
+++ b/modules/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