File: MocList

package info (click to toggle)
dgedit 0~git20160401-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 400 kB
  • sloc: cpp: 2,611; makefile: 95; sh: 71; ansic: 1
file content (9 lines) | stat: -rwxr-xr-x 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# -*- mode: shell-script; sh-shell: bash; sh-indentation: 2 -*-
if [ "$1" = "cc" ]; then
	grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.cc/g'| xargs echo;
elif [ "$1" = "o" ]; then
	grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | sed -e 's/^//g;s/\.h/\.moc.o/g'| xargs echo;
elif [ "$1" = "h" ]; then
	grep "Q_OBJECT" *.h | LC_ALL=C sort | cut -d: -f1 | cut -d'/' -f3 | xargs echo;
fi