File: build-win32-mingw.sh

package info (click to toggle)
kchmviewer 5.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,868 kB
  • ctags: 918
  • sloc: cpp: 10,002; sh: 165; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Path to (cross-platform) mingw compiler
MINGWPATH=/home/tim/bin/mingw/bin
QTPATH=/home/tim/bin/qt-4.4.0

BUILDDIR="build.win32"

##################################

if [ -d "$BUILDDIR" ]; then
	rm -rf "$BUILDDIR"
fi

svn export . "$BUILDDIR/" || exit 1
cd "$BUILDDIR"

# Compile it
export PATH=$MINGWPATH:$PATH
$QTPATH/bin/qmake -r -spec win32-mingw-g++ && make -j4 || exit 1