summaryrefslogtreecommitdiffstats
path: root/qtinterface/parser2.sh
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-13 07:21:42 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-13 07:21:42 +0000
commit2816be9dc2eded3ed8c183abb65dc8668690c43b (patch)
treee75eabce5aee961e0067ab97ef9fe909f5b0cf78 /qtinterface/parser2.sh
parent4ae6b1ec19cab82c5c5e1e6cf6f47d8ee3a8ea83 (diff)
downloadtqtinterface-2816be9dc2eded3ed8c183abb65dc8668690c43b.tar.gz
tqtinterface-2816be9dc2eded3ed8c183abb65dc8668690c43b.zip
Initial development version for Qt3
HIGHLY EXPERIMENTAL API subject to rapid and substantial change Test code is included; be warned git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1149288 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/parser2.sh')
-rwxr-xr-xqtinterface/parser2.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/qtinterface/parser2.sh b/qtinterface/parser2.sh
new file mode 100755
index 0000000..0272595
--- /dev/null
+++ b/qtinterface/parser2.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Run me like this:
+# ls tq* | grep .h | xargs ./parser2.sh
+#
+# Before use, check for correct operation with this
+# ls tq* | grep .h | xargs ./parser2.sh | grep EXPORT
+
+echo "#!/bin/bash"
+
+echo " "
+
+for var in "$@"
+do
+ cat $var | grep "class " | sed 's/class //g' | sed 's/QM_EXPORT_XML //g' | sed 's/Q_EXPORT //g' | sed 's/QM_EXPORT_TABLE //g' | sed 's/QM_EXPORT_SQL //g' | sed 's/QM_EXPORT_NETWORK //g' | sed 's/QM_EXPORT_CANVAS //g' | sed 's/QM_EXPORT_DOM //g' | sed 's/QM_EXPORT_HTTP //g' | sed 's/QM_EXPORT_ICONVIEW //g' | sed 's/QM_EXPORT_OPENGL //g' | sed 's/Q_EXPORT_CODECS_JP //g' | sed 's/Q_EXPORT_CODECS_CN //g' | sed 's/Q_PNGEXPORT //g' | sed 's/Q_EXPORT_STYLE_COMPACT //g' | sed 's/Q_EXPORT_CODECS_KR //g' | awk '{print $1}' | sed 's/\/\/.//g' | sed 's/\/\///g' | sed 's/://g' | sed 's/;//g' | xargs ./parser3.sh
+done
+
+echo " "
+
+echo "find ./ -type f -iname \"*.h*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.h*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.h*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.h*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.c*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.c*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.c*\" -exec sed -i 's/TTQ/TQ/g' {} \;"
+echo "find ./ -type f -iname \"*.c*\" -exec sed -i 's/TTQ/TQ/g' {} \;"