From 920c81ca14523662ed1bc67778e0219e2a16a407 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 May 2013 21:02:50 -0400 Subject: [PATCH] stupid windows.. --- standalone/windows/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh index 36ececfdb5..c63fa8b177 100644 --- a/standalone/windows/build.sh +++ b/standalone/windows/build.sh @@ -35,8 +35,13 @@ cd .. cabal install --only-dependencies -f"$FLAGS" -if ! -e last-incremental-failed; then - cabal clean +# Detect when the last build was an incremental build and failed, +# and try a full build. Done this way because this shell seems a bit +# broken. +if [ -e last-incremental-failed ]; then + cabal clean || true + # windows breakage.. + rm -rf dist fi touch last-incremental-failed