diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-17 23:57:33 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-17 23:57:33 +0000 |
commit | ff73d71bb849ceab4994d182dd80a324144d7678 (patch) | |
tree | 99a10f76cc44e5b6bbb0e8e930176356f4560902 | |
parent | 1be0f2d3ae0a41829a6e872033e343d14faf14ab (diff) |
moved to root level so that there is one common version for all objects
svn path=/trunk/externals/unauthorized/; revision=874
-rwxr-xr-x | tk2c.bash | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tk2c.bash b/tk2c.bash new file mode 100755 index 0000000..9dfeb03 --- /dev/null +++ b/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 |