summaryrefslogtreecommitdiffstats
path: root/qtinterface/moc-tqt
blob: e8c3d53dbbc653d9a75032ff0ed6e4eb887565ac (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [[ $1 == "" ]]; then
	echo "Usage: moc-tqt <moc_binary> <input_file> <output_file>"
else
	cp -Rp $2 $2.bkp
	tqt-replace $2
	$1 $2 -o $3
	cp -Rp $2.bkp $2
	rm -f $2.bkp
fi