From 3c050000c6918b77a353583999e6e810aa675fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Wed, 24 Oct 2007 20:37:21 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r8875, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/pdvjtools/; revision=8876 --- videogrid/tk2c.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 videogrid/tk2c.sh (limited to 'videogrid/tk2c.sh') 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 + -- cgit v1.2.1