blob: 3a8afc5b0a1a80d5b8f2c2bd2c2cc9ce86732f9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# -*- 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
|