summaryrefslogtreecommitdiffstats
path: root/qtinterface/uic-tqt
blob: b355ade3b2301abb5423f70137562464e6707da9 (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 "$@"
	cp -Rp $uifile.bkp $uifile
	rm -f $uifile.bkp
fi