seems windows sh doesn't properly handle set -e in functions
This commit is contained in:
parent
5fbe3bc756
commit
5b09b8d6bf
1 changed files with 13 additions and 18 deletions
|
@ -35,26 +35,21 @@ cd ..
|
||||||
|
|
||||||
cabal install --only-dependencies -f"$FLAGS"
|
cabal install --only-dependencies -f"$FLAGS"
|
||||||
|
|
||||||
runbuild () {
|
if ! -e last-incremental-failed; then
|
||||||
set -e
|
|
||||||
|
|
||||||
# Build git-annex
|
|
||||||
withcyg cabal configure -f"$FLAGS"
|
|
||||||
withcyg cabal build
|
|
||||||
|
|
||||||
# Build the installer
|
|
||||||
cabal install nsis
|
|
||||||
ghc --make Build/NullSoftInstaller.hs
|
|
||||||
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
|
cabal clean
|
||||||
runbuild
|
|
||||||
fi
|
fi
|
||||||
|
touch last-incremental-failed
|
||||||
|
|
||||||
|
# Build git-annex
|
||||||
|
withcyg cabal configure -f"$FLAGS"
|
||||||
|
withcyg cabal build
|
||||||
|
|
||||||
|
# Build the installer
|
||||||
|
cabal install nsis
|
||||||
|
ghc --make Build/NullSoftInstaller.hs
|
||||||
|
withcyg Build/NullSoftInstaller.exe
|
||||||
|
|
||||||
|
rm -f last-incremental-failed
|
||||||
|
|
||||||
# Test git-annex
|
# Test git-annex
|
||||||
rm -rf .t
|
rm -rf .t
|
||||||
|
|
Loading…
Add table
Reference in a new issue