xref: /glogg/release-win32.sh (revision 21a1b6dca17b27fc159f6642d5f1709e2b02f301)
1d9e83e98SNicolas Bonnefon#!/bin/bash
2d9e83e98SNicolas Bonnefon
3afcc2cb7SNicolas BonnefonPATH=/cygdrive/c/qt/2010.02.1/qt/bin:/cygdrive/c/qt/2010.02.1/mingw/bin/:$PATH
4f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then
5*21a1b6dcSNicolas Bonnefon    echo "Building default version"
69a361c77SNicolas Bonnefon    qmake glogg.pro -spec win32-g++ -r CONFIG+=release
7*21a1b6dcSNicolas Bonnefonelse
8*21a1b6dcSNicolas Bonnefon    echo "Building version $VERSION"
9*21a1b6dcSNicolas Bonnefon    qmake glogg.pro -spec win32-g++ -r CONFIG+=release VERSION="$VERSION"
10f9fc179dSNicolas Bonnefonfi
11d9e83e98SNicolas Bonnefonmingw32-make
12afcc2cb7SNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
13da722d7bSNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/mingw/bin/{mingwm10,libgcc_s_dw2-1}.dll release/
14f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then
15f9fc179dSNicolas Bonnefon    VERSION=`git describe`;
16f9fc179dSNicolas Bonnefonfi
179a361c77SNicolas Bonnefonecho Generating installer for glogg-$VERSION
189a361c77SNicolas Bonnefon/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi
19