From 11d2a46b26553fdd31c141df69c48f0e8b608f7f Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sat, 19 Nov 2005 03:44:29 +0000 Subject: scrolllist 0.1 svn path=/trunk/externals/unauthorized/; revision=3969 --- scrolllist/tk2c.bash | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scrolllist/tk2c.bash (limited to 'scrolllist/tk2c.bash') diff --git a/scrolllist/tk2c.bash b/scrolllist/tk2c.bash new file mode 100755 index 0000000..9dfeb03 --- /dev/null +++ b/scrolllist/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 -- cgit v1.2.1