blob: cbbec60f4d3b4906ecc1fd2b8c28f8a49f916f91 (
plain)
1
2
3
4
5
6
7
8
9
|
# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
if [ "$2" = "cc" ]; then
grep -m1 "Q_OBJECT" $1/*.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo;
elif [ "$2" = "o" ]; then
grep -m1 "Q_OBJECT" $1/*.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo;
elif [ "$2" = "h" ]; then
grep -m1 "Q_OBJECT" $1/*.h | LC_ALL=C sort | cut -d: -f1 | cut -d'/' -f3 | xargs echo;
fi
|