build
author Markus Bröker <mbroeker@largo.homelinux.org>
Sat, 03 Jan 2009 01:28:28 +0100
changeset 4 fdf04a93faeb
parent 2 62ddf5dd4db0
permissions -rwxr-xr-x
Codebase indented by me and gnu-indent

#!/bin/bash

# This works for qmake version 4.x and fails for qmake version 3 !
# 

rm -rf .moc .obj Makefile
find -name '*~' -exec rm -f {} \;

rm -f *.o
qmake-qt4 -project .ui
qmake-qt4 -makefile

make all

if [ ! -f /etc/debian_version ];
then
	./post-install;
else
	echo "Skipping post-install, handled by dpkg";
fi