From 38414cd33812fed38f0124730c7896dde55f1f2e Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Sun, 11 Sep 2011 20:21:57 -0400 Subject: [PATCH] Add scripts submodule --- .gitmodules | 3 +++ install-all.sh | 48 ------------------------------------------------ scripts | 1 + 3 files changed, 4 insertions(+), 48 deletions(-) create mode 100644 .gitmodules delete mode 100755 install-all.sh create mode 160000 scripts diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..91468aac --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "scripts"] + path = scripts + url = git://github.com/yesodweb/scripts.git diff --git a/install-all.sh b/install-all.sh deleted file mode 100755 index 4dd3518c..00000000 --- a/install-all.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -e - -# allow a CABAL env var to override -CABAL=${CABAL:-cabal} - -# install testing dependencies -$CABAL install HUnit QuickCheck 'hspec >= 0.6.1 && < 0.7' - -# Note: Ignoring wai-handler-devel, wai-handler-webkit -pkgs=( wai - wai-test - wai-extra - warp - wai-app-static - wai-handler-fastcgi - wai-handler-launch - wai-handler-scgi - warp-static - ) - -# install each sub-respository -for pkg in "${pkgs[@]}"; do - echo "Installing $pkg..." - - ( - cd "./$pkg" - - if [ "$1" = "--clean" ]; then - $CABAL clean - fi - - if ! $CABAL configure --ghc-options="-Wall -Werror"; then - $CABAL install --only-dependencies - $CABAL configure --ghc-options="-Wall -Werror" - fi - $CABAL build - - $CABAL configure --enable-tests - $CABAL build - $CABAL test - - $CABAL check - if [ "$1" != "--fast" ]; then - $CABAL haddock --executables - fi - ./Setup.lhs install - ) -done diff --git a/scripts b/scripts new file mode 160000 index 00000000..00e2390f --- /dev/null +++ b/scripts @@ -0,0 +1 @@ +Subproject commit 00e2390f2eb601d869e97fc2838cc17f63f0e343