summaryrefslogtreecommitdiffstats
path: root/admin/searchmetaob.sh
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-26 19:11:44 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-26 19:11:44 +0000
commitf677d2717dd41d04a15f68036217042583ffe097 (patch)
tree556e130daf60b843406e948979e952a06ca2eaa9 /admin/searchmetaob.sh
parenta6d58bb6052ac8cb01805a48c4ad2f129126116f (diff)
downloadkvirc-f677d2717dd41d04a15f68036217042583ffe097.tar.gz
kvirc-f677d2717dd41d04a15f68036217042583ffe097.zip
Added kvirc-specific admin directory
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1096505 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'admin/searchmetaob.sh')
-rwxr-xr-xadmin/searchmetaob.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/admin/searchmetaob.sh b/admin/searchmetaob.sh
new file mode 100755
index 00000000..7d1f0ac0
--- /dev/null
+++ b/admin/searchmetaob.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+DIRS=`find ../src/modules/ -type d -maxdepth 1`
+
+HERE=`pwd`
+
+echo "Looking for unregistered meta objects"
+
+for adir in $DIRS; do
+
+ cd $HERE
+ cd $adir
+
+ THEFILES=`ls | grep "\.h"`
+
+ if test -n "$THEFILES"; then
+
+ echo "Checking dir $adir"
+
+ OBJECTS=`grep -h -B 4 "Q_OBJECT" *.h | grep "class" | grep ":" | sed -e 's/class[ ]*//g' | sed -e 's/[ ]*:[A-Za-z0-9 ,]*//g'`
+
+ for aob in $OBJECTS; do
+ META=`grep "unregisterMetaObject(\"$aob\")" *.cpp`
+ if test -z "$META"; then
+ echo "Class $aob is NOT UNREGISTERED in $adir"
+ fi
+ done
+
+ fi
+
+done