summaryrefslogtreecommitdiff
path: root/tools/MocList
diff options
context:
space:
mode:
authordeva <deva>2005-03-24 12:14:44 +0000
committerdeva <deva>2005-03-24 12:14:44 +0000
commit9466b3042bc7314915a15f499bd0b087f569654d (patch)
tree29c41f6ba46b9b92d91b92578720e1beee44fc9d /tools/MocList
parentb5a6a93dcc7a83f5c4f8fd1894e303ae58804e0b (diff)
Initial revision
Diffstat (limited to 'tools/MocList')
-rwxr-xr-xtools/MocList11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/MocList b/tools/MocList
new file mode 100755
index 0000000..b69f49f
--- /dev/null
+++ b/tools/MocList
@@ -0,0 +1,11 @@
+# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
+if grep "#define USE_GUI" ../config.h > /dev/null ; 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
+ grep "Q_OBJECT" *.h | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo;
+ elif [ "$1" = "h" ]; then
+ grep "Q_OBJECT" *.h | cut -d: -f1 | cut -d'/' -f3 | xargs echo;
+ fi
+fi
+