view 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
line wrap: on
line source

#! /bin/bash

echo "Compiling .ui files to C#"

for uiFile in qt-gui/*.ui
do
	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