diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kexi/3rdparty/kexisql/tool/opcodes.sh | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/3rdparty/kexisql/tool/opcodes.sh')
-rwxr-xr-x | kexi/3rdparty/kexisql/tool/opcodes.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kexi/3rdparty/kexisql/tool/opcodes.sh b/kexi/3rdparty/kexisql/tool/opcodes.sh new file mode 100755 index 00000000..7e7024ed --- /dev/null +++ b/kexi/3rdparty/kexisql/tool/opcodes.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# this script has to be run after the version +# changed + +#generate c file: +echo '/* Automatically generated file. Do not edit */' >../src/opcodes.c +echo 'char *sqliteOpcodeNames[] = { "???", ' >>../src/opcodes.c +grep '^case OP_' ../src/vdbe.c | sed -e 's/^.*OP_/ "/' -e 's/:.*/", /' >>../src/opcodes.c +echo '};' >>../src/opcodes.c + +#generate header file: +echo '/* Automatically generated file. Do not edit */' >../src/opcodes.h +grep '^case OP_' ../src/vdbe.c | sed -e 's/case //' -e 's/:[ {]*//' | awk '{printf "#define %-30s %3d\n", $$2, ++cnt}' >>../src/opcodes.h |