Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
diff 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 |
line wrap: on
line diff
--- a/compile-ui.sh Sat Jan 23 17:05:18 2010 +0000 +++ b/compile-ui.sh Sat Jan 23 19:55:54 2010 +0000 @@ -2,11 +2,19 @@ echo "Compiling .ui files to C#" -for f in qt-gui/*.ui +for uiFile in qt-gui/*.ui do - echo -ne " * Compiling $f..." - uics -o ${f/.ui/.cs} $f - echo "...compiled." + csFile=${uiFile/.ui/.cs} + + # Only update if file has changed + if test $uiFile -nt $csFile + then + echo -ne " * Compiling $uiFile..." + uics -o $csFile $uiFile + echo "...compiled." + else + echo " * Skipping $uiFile - no update needed" + fi done echo