view compile-ui.sh @ 31:d586244177ff

Fixes #244: Create "New Unit" dialog in Qt# app * Make new unit dialog unit type list use double-click on list
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Aug 2010 13:34:05 +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