##########################################
# Wellenreiter X11 standalone build script #
##########################################

PREFIX=/usr/local

# ------------------- do not change anything below

if [ -z $QTDIR ]
then
    echo "*** ERROR: QTDIR is not set. QTDIR must point to your Qt directory, e.g. /usr/lib/qt3"
    exit
fi

export QMAKESPEC=$QTDIR/mkspecs/linux-g++
export OPIEDIR=$PWD
export PATH=$QTDIR/bin:$PATH
qmake "platform=x11" wellenreiter.pro


case "$1" in
compile) make;;
install) cp -dfR output/* $PREFIX/;;
*) echo "Usage: ./build [compile|install]"; exit;;
esac



