build
author Markus Bröker <mbroeker@largo.homelinux.org>
Thu, 20 Aug 2009 21:08:16 +0200
changeset 6 acfe33bf1dcc
parent 4 fdf04a93faeb
permissions -rwxr-xr-x
Minimum and Maximum Expanding Error in newer qt versions

#!/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