From 6a7dcacff017b3bbeeb52845b496e4ebd0defe2a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 21 Mar 2015 00:04:06 +0000 Subject: make deploy.sh better on a new host: cabal update etc. --- deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy.sh b/deploy.sh index c967121..9f90e30 100755 --- a/deploy.sh +++ b/deploy.sh @@ -25,6 +25,12 @@ mkdir -p $dest # 2. build our software +if ! [ -d "$HOME/.cabal/config" ]; then + mkcabalc +fi +if ! [ -d "$HOME/.cabal/packages" ]; then + cabal update +fi if ! [ -d ".cabal-sandbox" ]; then cabal sandbox init fi -- cgit v1.2.3