diff options
author | N.N. <sevyves@users.sourceforge.net> | 2005-11-19 03:44:29 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2005-11-19 03:44:29 +0000 |
commit | 11d2a46b26553fdd31c141df69c48f0e8b608f7f (patch) | |
tree | 48668ca483e83e70d27c023ed3b2958f6fdc53ed /scrolllist/tk2c.bash | |
parent | ae5ca28aed15abfd7e45510022942f7dfdad83e2 (diff) |
scrolllist 0.1
svn path=/trunk/externals/unauthorized/; revision=3969
Diffstat (limited to 'scrolllist/tk2c.bash')
-rwxr-xr-x | scrolllist/tk2c.bash | 24 |
1 files changed, 24 insertions, 0 deletions
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 |