diff options
author | N.N. <sevyves@users.sourceforge.net> | 2004-03-30 04:11:42 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2004-03-30 04:11:42 +0000 |
commit | 30809d41b8499bcb12d1245f1b34ec25eb8de2dc (patch) | |
tree | ee83e330a2102a33be131cfca98a952d3d75077d /grid/tk2c.bash | |
parent | f51c45c93c6bdc6601465c49c9c6c19c5bde7e63 (diff) |
grid 0.5
svn path=/trunk/externals/unauthorized/; revision=1514
Diffstat (limited to 'grid/tk2c.bash')
-rwxr-xr-x | grid/tk2c.bash | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/grid/tk2c.bash b/grid/tk2c.bash new file mode 100755 index 0000000..9dfeb03 --- /dev/null +++ b/grid/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 |