X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tools%2Finstallhaskellenv.sh;h=ea663decab0bb4a08e636f9c40a76ae15c6e1200;hb=dc7082de1fff3158da5682d683502128b5f6cc0b;hp=1dd6aec863f6134c2e3dece3a3664cb245dfffd4;hpb=515ec48f67186600c884f05bf7b5fd5fda184ad4;p=mate.git diff --git a/tools/installhaskellenv.sh b/tools/installhaskellenv.sh index 1dd6aec..ea663de 100755 --- a/tools/installhaskellenv.sh +++ b/tools/installhaskellenv.sh @@ -1,27 +1,45 @@ #!/bin/bash -x +CABAL_OPT="--enable-shared -p" + +function gitinstall { + url=$1 + git clone $url tmprepo + cd tmprepo + cabal install $CABAL_OPT + cd .. + rm -rf tmprepo +} + +#hs: i ran into the problem that cabal install does not execute +#my Setup.hs - as workaround i invoke runhaskell Setup.hs etc directly +function gitinstallWithCustomSetup { + url=$1 + git clone $url hs-boehmgc + cd hs-boehmgc + runhaskell Setup.hs configure --user $CABAL_OPT + runhaskell Setup.hs build + runhaskell Setup.hs install + cd .. +} + rm -rf ~/.ghc ~/.cabal cabal update -cabal install cabal-install --enable-shared +cabal install cabal-install $CABAL_OPT export PATH=~/.cabal/bin:$PATH cabal update -cabal install hs-java --enable-shared -cabal install harpy --enable-shared -cabal install missingh --enable-shared -cabal install heap --enable-shared -cabal install plugins --enable-shared - -git clone git://wien.tomnetworks.com/harpy.git -cd harpy -cabal install --enable-shared -cd .. -rm -rf harpy - -git clone git://wien.tomnetworks.com/hs-java.git -cd hs-java -git checkout -t origin/v0.2 -cabal install --enable-shared -cd .. -rm -rf hs-java +cabal install missingh $CABAL_OPT +cabal install heap $CABAL_OPT +cabal install plugins $CABAL_OPT +cabal install split $CABAL_OPT + +# cabal install hs-java $CABAL_OPT +gitinstall git://wien.tomnetworks.com/hs-java.git + +cabal install disassembler $CABAL_OPT +# cabal install harpy $CABAL_OPT +gitinstall git://wien.tomnetworks.com/harpy.git + +gitinstallWithCustomSetup git://wien.tomnetworks.com/hs-boehmgc.git echo DONE