]> Shamusworld >> Repos - architektonas/blob - cross-compile
Initial stab at horizontally aligned Dimensions.
[architektonas] / cross-compile
1 #!/bin/bash
2 #
3 # Short script to do cross compilation with MXE on Linux
4 #
5 # by James Hammons
6 # (C) 2012 Underground Software
7 #
8 TARGET=architektonas
9 echo "Cross compiling ${TARGET} for Win32..."
10 export PATH=/opt/mxe/usr/bin:$PATH
11 rm Makefile
12 /opt/mxe/usr/i686-pc-mingw32/qt/bin/qmake
13 make
14 #make CROSS=i686-pc-mingw32-
15 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
16 rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
17 #echo ${TARGET}.exe
18 cd release && upx -9v ${TARGET}.exe && zip -9v ${TARGET}-${rel}.zip ${TARGET}.exe