summaryrefslogtreecommitdiff
path: root/tools/MocList
diff options
context:
space:
mode:
authordeva <deva>2006-03-14 17:24:29 +0000
committerdeva <deva>2006-03-14 17:24:29 +0000
commite8be1dfe0b9eb6fd69431184b94f82fc605388e4 (patch)
tree9ab703a9b0401246bb511d59fe272277d27bea35 /tools/MocList
parent37a036eac8676ab5590edecc882381ae98ba1eaa (diff)
*** empty log message ***
Diffstat (limited to 'tools/MocList')
-rwxr-xr-xtools/MocList8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/MocList b/tools/MocList
index b69f49f..639b668 100755
--- a/tools/MocList
+++ b/tools/MocList
@@ -1,11 +1,9 @@
# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
-if grep "#define USE_GUI" ../config.h > /dev/null ; then
- if [ "$1" = "cc" ]; then
+if [ "$1" = "cc" ]; then
grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo;
- elif [ "$1" = "o" ]; then
+elif [ "$1" = "o" ]; then
grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo;
- elif [ "$1" = "h" ]; then
+elif [ "$1" = "h" ]; then
grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo;
- fi
fi