#!/bin/sh

# you will need "qmake" and "libqt4-dev" to build this
# details at http://tuxboot.wiki.sourceforge.net/compile

cp tuxboot.pro tuxboot-pro.bak
sed -i '/^RESOURCES/d' tuxboot.pro
lupdate tuxboot.pro
lrelease tuxboot.pro
qmake "DEFINES += NOSTATIC CLONEZILLA" "RESOURCES -= tuxboot.qrc"
make
mv tuxboot-pro.bak tuxboot.pro

