do a clean build if incremental fails
This commit is contained in:
parent
b5433c3a9d
commit
0bc43407e5
1 changed files with 17 additions and 7 deletions
|
@ -35,6 +35,7 @@ cd ..
|
||||||
|
|
||||||
cabal install --only-dependencies -f"$FLAGS"
|
cabal install --only-dependencies -f"$FLAGS"
|
||||||
|
|
||||||
|
runbuild () {
|
||||||
# Build git-annex
|
# Build git-annex
|
||||||
withcyg cabal configure -f"$FLAGS"
|
withcyg cabal configure -f"$FLAGS"
|
||||||
withcyg cabal build
|
withcyg cabal build
|
||||||
|
@ -43,6 +44,15 @@ withcyg cabal build
|
||||||
cabal install nsis
|
cabal install nsis
|
||||||
ghc --make Build/NullSoftInstaller.hs
|
ghc --make Build/NullSoftInstaller.hs
|
||||||
withcyg Build/NullSoftInstaller.exe
|
withcyg Build/NullSoftInstaller.exe
|
||||||
|
}
|
||||||
|
|
||||||
|
# Incremental build sometimes may fail, possibly because the configure
|
||||||
|
# script has changed but cabal neglects to re-build it on Windows
|
||||||
|
if ! runbuild; then
|
||||||
|
echo "Retrying after cabal clean"
|
||||||
|
cabal clean
|
||||||
|
runbuild
|
||||||
|
fi
|
||||||
|
|
||||||
# Test git-annex
|
# Test git-annex
|
||||||
rm -rf .t
|
rm -rf .t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue