Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
comparison compile-ui.sh @ 1:4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
* Convert to Visual Studio 2005 project
* Add Solution file
* Update compile script to be more readable and to check whether rebuilds are needed
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 23 Jan 2010 19:55:54 +0000 |
parents | 620c62ba4d07 |
children |
comparison
equal
deleted
inserted
replaced
0:620c62ba4d07 | 1:4ff09911ef64 |
---|---|
1 #! /bin/bash | 1 #! /bin/bash |
2 | 2 |
3 echo "Compiling .ui files to C#" | 3 echo "Compiling .ui files to C#" |
4 | 4 |
5 for f in qt-gui/*.ui | 5 for uiFile in qt-gui/*.ui |
6 do | 6 do |
7 echo -ne " * Compiling $f..." | 7 csFile=${uiFile/.ui/.cs} |
8 uics -o ${f/.ui/.cs} $f | 8 |
9 echo "...compiled." | 9 # Only update if file has changed |
10 if test $uiFile -nt $csFile | |
11 then | |
12 echo -ne " * Compiling $uiFile..." | |
13 uics -o $csFile $uiFile | |
14 echo "...compiled." | |
15 else | |
16 echo " * Skipping $uiFile - no update needed" | |
17 fi | |
10 done | 18 done |
11 | 19 |
12 echo | 20 echo |