xref: /glogg/release-win32.sh (revision fa752b258052c6c4da731959a6cea43ef0abdcb0)
1#!/bin/bash
2
3PATH=/cygdrive/c/qt/2010.02.1/qt/bin:/cygdrive/c/qt/2010.02.1/mingw/bin/:$PATH
4if [ -z "$VERSION" ]; then
5    echo "Building default version"
6    qmake glogg.pro -spec win32-g++ -r CONFIG+=release
7else
8    echo "Building version $VERSION"
9    qmake glogg.pro -spec win32-g++ -r CONFIG+=release VERSION="$VERSION"
10fi
11mingw32-make
12cp /cygdrive/c/qt/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
13cp /cygdrive/c/qt/2010.02.1/mingw/bin/{mingwm10,libgcc_s_dw2-1}.dll release/
14if [ -z "$VERSION" ]; then
15    VERSION=`git describe`;
16fi
17echo Generating installer for glogg-$VERSION
18/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi
19