aboutsummaryrefslogtreecommitdiff
path: root/cooled~/tk2c.bash
diff options
context:
space:
mode:
Diffstat (limited to 'cooled~/tk2c.bash')
-rwxr-xr-xcooled~/tk2c.bash24
1 files changed, 24 insertions, 0 deletions
diff --git a/cooled~/tk2c.bash b/cooled~/tk2c.bash
new file mode 100755
index 0000000..9dfeb03
--- /dev/null
+++ b/cooled~/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