From c8342284198a0a8d333ceae378be0755f2b6dbc9 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Wed, 22 Apr 2015 17:40:32 +0300 Subject: [PATCH] New build.sh --- automated/.gitignore | 10 ++++++ automated/build.sh | 73 ++++++++++++++++++++++++++++++++++++++++++++ automated/nightly.sh | 34 --------------------- 3 files changed, 83 insertions(+), 34 deletions(-) create mode 100644 automated/.gitignore create mode 100755 automated/build.sh delete mode 100755 automated/nightly.sh diff --git a/automated/.gitignore b/automated/.gitignore new file mode 100644 index 00000000..8285928f --- /dev/null +++ b/automated/.gitignore @@ -0,0 +1,10 @@ +/auth-token +/bin/ +/gitconfig +/hackage-creds +/ssh-nightly/ +/ssh-lts/ +/nighlty/ +/lts-*/ +/stackage-curator/ +/stackage-update/ diff --git a/automated/build.sh b/automated/build.sh new file mode 100755 index 00000000..3d92d45d --- /dev/null +++ b/automated/build.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +set -eux + +ROOT=$(cd $(dirname $0) ; pwd) +TARGET=$1 +TROOT=$ROOT/$(echo $TARGET | cut -d. -f 1) +PLAN_FILE=current-plan.yaml +BUNDLE_FILE=current.bundle + +CABAL_DIR=$ROOT/cabal +GHC_DIR=$ROOT/ghc +CURATOR_DIR=$ROOT/stackage-curator +UPDATE_DIR=$ROOT/stackage-update +WORKDIR=$TROOT/work +SSH_DIR=$ROOT/ssh-$(echo $TARGET | cut -d- -f 1) + +mkdir -p \ + "$CABAL_DIR" \ + "$GHC_DIR" \ + "$CURATOR_DIR" \ + "$UPDATE_DIR" \ + "$WORKDIR" \ + "$SSH_DIR" + +GITCONFIG=$ROOT/gitconfig +cat >$GITCONFIG <$SSH_DIR/known_hosts <gitconfig <