aboutsummaryrefslogtreecommitdiff
path: root/videogrid/tk2c.sh
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2007-10-24 20:37:21 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2007-10-24 20:37:21 +0000
commit3c050000c6918b77a353583999e6e810aa675fda (patch)
treefc6aab7c92efb156966f5c926517f2f02e7b417e /videogrid/tk2c.sh
This commit was generated by cvs2svn to compensate for changes in r8875,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/pdvjtools/; revision=8876
Diffstat (limited to 'videogrid/tk2c.sh')
-rw-r--r--videogrid/tk2c.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/videogrid/tk2c.sh b/videogrid/tk2c.sh
new file mode 100644
index 0000000..1b1dc09
--- /dev/null
+++ b/videogrid/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
+