aboutsummaryrefslogtreecommitdiff
path: root/tk2c.bash
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-17 23:57:33 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-17 23:57:33 +0000
commitff73d71bb849ceab4994d182dd80a324144d7678 (patch)
tree99a10f76cc44e5b6bbb0e8e930176356f4560902 /tk2c.bash
parent1be0f2d3ae0a41829a6e872033e343d14faf14ab (diff)
moved to root level so that there is one common version for all objects
svn path=/trunk/externals/unauthorized/; revision=874
Diffstat (limited to 'tk2c.bash')
-rwxr-xr-xtk2c.bash24
1 files changed, 24 insertions, 0 deletions
diff --git a/tk2c.bash b/tk2c.bash
new file mode 100755
index 0000000..9dfeb03
--- /dev/null
+++ b/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