]> git.street.me.uk Git - andy/viking.git/blob - win32/generate_install.sh
Add functions to return sublayer visibility.
[andy/viking.git] / win32 / generate_install.sh
1 #!/bin/bash
2 # NB Annoyingly pushd/popd are bashisms!
3 #
4 # License: CC0
5 #
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!
12 if [ ! -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
23 fi
24
25 wine ~/.wine/drive_c/windows/system32/cmd.exe /c prepare.bat