Follow upstream changes -- rest
[git-darcs-import.git] / tools / test-franchise-build.sh
blob715dfb7ccf10b41c8d554878452593d87ac958cb
1 #!/bin/sh
3 set -ev
5 REPODIR=`pwd`
7 echo I think your repository is $REPODIR
9 # Building clean copy of franchise
10 rm -rf /tmp/franchise-test
11 darcs get http://darcs.net/repos/franchise /tmp/franchise-test
12 cd /tmp/franchise-test
13 runghc Setup.hs configure --prefix=$HOME --user
14 runghc Setup.hs install
16 # Get clean copy of darcs
17 rm -rf /tmp/darcs-franchise
18 darcs get $REPODIR /tmp/darcs-franchise
19 cd /tmp/darcs-franchise
21 # Test franchise build of darcs
22 runghc Setup.hs configure
23 runghc Setup.hs build -j4
25 if test !"wine-1.0" = `wine --version`; then
26 echo Not running wine test, since wine is too old maybe.
27 exit 0
30 echo Testing cross-compile of darcs on windows
32 # Build clean copy of franchise under wine
33 rm -rf /tmp/franchise-test
34 darcs get http://darcs.net/repos/franchise /tmp/franchise-test
35 cd /tmp/franchise-test
36 wine runghc Setup.hs configure
37 wine runghc Setup.hs install
39 # Get another clean copy of darcs
40 rm -rf /tmp/darcs-windows
41 darcs get $REPODIR /tmp/darcs-windows
42 cd /tmp/darcs-windows
44 # Build darcs under wine
45 wine runghc Setup.hs configure
46 wine runghc Setup.hs build -j4