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"
|
||||
|
||||
runbuild () {
|
||||
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"
|
||||
if ! -e last-incremental-failed; then
|
||||
cabal clean
|
||||
runbuild
|
||||
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
|
||||
rm -rf .t
|
||||
|
|
Loading…
Reference in a new issue