aboutsummaryrefslogtreecommitdiff
path: root/imagegrid/tk2c.sh
diff options
context:
space:
mode:
Diffstat (limited to 'imagegrid/tk2c.sh')
-rw-r--r--imagegrid/tk2c.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/imagegrid/tk2c.sh b/imagegrid/tk2c.sh
new file mode 100644
index 0000000..1b1dc09
--- /dev/null
+++ b/imagegrid/tk2c.sh
@@ -0,0 +1,25 @@
+#!/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
+