summaryrefslogtreecommitdiffstats
path: root/qtinterface/uic-tqt
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/uic-tqt')
-rwxr-xr-xqtinterface/uic-tqt18
1 files changed, 18 insertions, 0 deletions
diff --git a/qtinterface/uic-tqt b/qtinterface/uic-tqt
new file mode 100755
index 0000000..b355ade
--- /dev/null
+++ b/qtinterface/uic-tqt
@@ -0,0 +1,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