#!/bin/sh # Simple script to download and build inkscape for windows # First, in cygwin's setup, install 7zip, gcc, svn, and wget. # Then run this script in Cygwin. # # Based on http://wiki.inkscape.org/wiki/index.php/Win32Port # (but using inkscape trunk so you don't need any patches to build on windows) # # 7 Aug 2009 Dan Kegel # # Note to masochists^Wanyone using this as a wine benchmark: # To run this in Wine, you need to start cygwin with the command # wineconsole cygwin.bat # and then you can run it just like in windows. set -x set -e if [ ! -d c:/devlibs ] then test -f devlibs-svn-0811161728.7z || wget http://inkscape.modevia.com/win32libs/devlibs-svn-0811161728.7z 7z x devlibs-svn-0811161728.7z rm -rf c:/devlibs mv devlibs c:/devlibs svn up c:/devlibs fi if [ ! -d c:/mingw ] then test -f mingw-4.2.1-071022-dw2.7z || wget http://inkscape.modevia.com/win32libs/mingw-4.2.1-071022-dw2.7z 7z x mingw-4.2.1-071022-dw2.7z find mingw -name '*.exe' | xargs chmod 755 rm -rf c:/mingw mv mingw c:/mingw fi test -d inkscape-svn || svn co https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape-svn cd inkscape-svn cp mingwenv.bat go.bat echo "g++ buildtool.cpp -o btool" >> go.bat echo "btool" >> go.bat cmd /c go.bat