File: update-moc.sh

package info (click to toggle)
ciborium 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,928 kB
  • sloc: cpp: 2,199; sh: 75; makefile: 20
file content (12 lines) | stat: -rwxr-xr-x 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e
cd `dirname $0`

export QT_SELECT=5

for file in `grep -l Q_''OBJECT *`; do
	mocfile=`echo $file | awk -F. '{print("moc_"$1".cpp")}'`
	mochack=`sed -n 's,^ *// MOC HACK: \(.*\),\1,p' $file`
	moc $file | sed "$mochack" > $mocfile
done