#!/bin/sh

# you will need "qmake" and "libqt4-dev" to build this
# details at https://github.com/unetbootin/unetbootin/wiki/compile

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