Skip to content

Instantly share code, notes, and snippets.

@sw17ch
Created August 19, 2014 00:47
Show Gist options
  • Select an option

  • Save sw17ch/6bb85aa258bc0b75bb4a to your computer and use it in GitHub Desktop.

Select an option

Save sw17ch/6bb85aa258bc0b75bb4a to your computer and use it in GitHub Desktop.
#!/bin/sh
CORE="cauterize-core"
OTHER="cauterize cauterize-test caut-c11-synchronous caut-hs2010-synchronous"
REPOS="$CORE $OTHER"
PREFIX="git@gitlab.com:cauterize/"
POSTFIX=".git"
mkdir -p cauterize-env/sandbox
cd cauterize-env/sandbox
cabal sandbox init --sandbox=.
# cabal install mtl-2.2.1 parsec-3.1.5 --force-reinstalls
cd ..
for i in $REPOS;
do
git clone $PREFIX$i$POSTFIX;
done
for i in $OTHER;
do
cd $i
cabal sandbox init --sandbox=../sandbox
cabal sandbox add-source ../$CORE
cd ..
done
# for i in $REPOS;
# do
# cd $i
# cabal install
# cd ..
# done
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment