aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-21 00:04:06 +0000
committerSean Whitton <spwhitton@spwhitton.name>2015-03-21 00:04:06 +0000
commit6a7dcacff017b3bbeeb52845b496e4ebd0defe2a (patch)
tree0edf65d74c5bc16bf6374434d1b548c1efde1d56
parentb6980f4b0544b7c840d87543b7463f38a71fb925 (diff)
downloadsariulclocks-6a7dcacff017b3bbeeb52845b496e4ebd0defe2a.tar.gz
make deploy.sh better on a new host: cabal update etc.
-rwxr-xr-xdeploy.sh6
1 files changed, 6 insertions, 0 deletions
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