view compile-ui.sh @ 13:dbe784f0802c

Re #246: Create army tree implementation * Create model for the army tree view Re #242: Create Qt# UI for WarFoundry * Add actions directly rather than creating a list Re #247: Implement menu options in Qt# app * Implement enable/disable on undo/redo menu items
author IBBoard <dev@ibboard.co.uk>
date Sat, 13 Feb 2010 10:34:41 +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