]> git.street.me.uk Git - andy/viking.git/blame - win32/generate_install.sh
Enable compile time option for Mapbox access token.
[andy/viking.git] / win32 / generate_install.sh
CommitLineData
b1a8def8
RN
1#!/bin/bash
2# NB Annoyingly pushd/popd are bashisms!
3#
ba3695b5
RN
4# License: CC0
5#
b1a8def8
RN
6# You don't want to do this on a previously configured/built Linux source tree
7# as the build system will get confused so make clean and start again...
8#
9
10# Ensure a basic Windows compatible system is set up
11# Use wget to get wget!
12if [ ! -e ~/.wine/drive_c/Program\ Files/GnuWin32/bin/wget.exe ]; then
13 if [ ! -e cache ]; then
14 mkdir cache
15 fi
16 pushd cache
17 WGET_EXE=wget-1.11.4-1-setup.exe
18 if [ ! -e $WGET_EXE ]; then
19 wget http://downloads.sourceforge.net/gnuwin32/$WGET_EXE
20 fi
21 wine $WGET_EXE \/silent
22 popd
23fi
24
25wine ~/.wine/drive_c/windows/system32/cmd.exe /c prepare.bat
bdc7a436
RN
26
27# Fix broken Mapnik 2.2.0 shipped unicode headers
28cp -f /usr/include/x86_64-linux-gnu/unicode/*.h ~/.wine/drive_c/MinGW/include/unicode/