Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
annotate compile-ui.sh @ 2:cf68a996b3f1
Re #242: Create Qt# UI for WarFoundry
* Add initial Tango icons until Qt4.6 becomes standard with QIcon.fromTheme() method to get native icons
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 23 Jan 2010 20:26:04 +0000 |
parents | 4ff09911ef64 |
children |
rev | line source |
---|---|
0 | 1 #! /bin/bash |
2 | |
3 echo "Compiling .ui files to C#" | |
4 | |
1
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
5 for uiFile in qt-gui/*.ui |
0 | 6 do |
1
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
7 csFile=${uiFile/.ui/.cs} |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
8 |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
9 # Only update if file has changed |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
10 if test $uiFile -nt $csFile |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
11 then |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
12 echo -ne " * Compiling $uiFile..." |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
13 uics -o $csFile $uiFile |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
14 echo "...compiled." |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
15 else |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
16 echo " * Skipping $uiFile - no update needed" |
4ff09911ef64
Re #242: Create Qt# UI for WarFoundry
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
17 fi |
0 | 18 done |
19 | |
20 echo |