summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-19 21:02:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-19 21:02:50 -0400
commit9079178f532969e1e2a5e1654ea663cb73f84317 (patch)
tree2dec11a5106e0ca8422d882d46ddae02e4ed2a9d
parentaa27f7c1e6a137e842c130066383b0ca6802d6e5 (diff)
stupid windows..
-rw-r--r--standalone/windows/build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh
index 36ececfdb..c63fa8b17 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