summaryrefslogtreecommitdiffstats
path: root/qtinterface/uic-tqt.cmake
blob: 51b6626bb9f818504d507dd254720997e4060c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [[ $1 == "" ]]; then
	echo "Usage: uic-tqt <uic arguments>"
else
	for var in "$@"
	do
		if [[ ${var##*.} == "ui" ]]; then
			uifile=$var
		fi
	done

	cp -Rp $uifile $uifile.bkp
	tqt-replace $uifile
	@UIC_EXECUTABLE@ "$@"
	cp -Rp $uifile.bkp $uifile
	rm -f $uifile.bkp
fi