xref: /glogg/release-win32.sh (revision f9fc179d382976ed688fafe93e09cd12bd705062)
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
4*f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then
5*f9fc179dSNicolas Bonnefon    qmake glogg.pro -spec win32-g++ -r CONFIG+=release VERSION="$VERSION"
6*f9fc179dSNicolas Bonnefonelse
79a361c77SNicolas Bonnefon    qmake glogg.pro -spec win32-g++ -r CONFIG+=release
8*f9fc179dSNicolas Bonnefonfi
9d9e83e98SNicolas Bonnefonmingw32-make
10afcc2cb7SNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
11da722d7bSNicolas Bonnefoncp /cygdrive/c/qt/2010.02.1/mingw/bin/{mingwm10,libgcc_s_dw2-1}.dll release/
12*f9fc179dSNicolas Bonnefonif [ -z "$VERSION" ]; then
13*f9fc179dSNicolas Bonnefon    VERSION=`git describe`;
14*f9fc179dSNicolas Bonnefonfi
159a361c77SNicolas Bonnefonecho Generating installer for glogg-$VERSION
169a361c77SNicolas Bonnefon/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi
17