X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tools%2Finstallhaskellenv.sh;h=906974ed24f9a9b033713cf9fda2c7c18f9632dc;hb=HEAD;hp=37851137e4a5eda8851d399444cbe395baae5e54;hpb=933ec7b98b049bc7b5708a052d4224f07179bd93;p=mate.git diff --git a/tools/installhaskellenv.sh b/tools/installhaskellenv.sh index 3785113..906974e 100755 --- a/tools/installhaskellenv.sh +++ b/tools/installhaskellenv.sh @@ -1,6 +1,28 @@ #!/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 $CABAL_OPT @@ -10,23 +32,15 @@ cabal install missingh $CABAL_OPT cabal install heap $CABAL_OPT cabal install plugins $CABAL_OPT cabal install split $CABAL_OPT +cabal install bimap $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 -git clone git://wien.tomnetworks.com/disassembler.git -cd disassembler -cabal install $CABAL_OPT -cd .. -rm -rf disassembler - -git clone git://wien.tomnetworks.com/harpy.git -cd harpy -cabal install $CABAL_OPT -cd .. -rm -rf harpy - -git clone git://wien.tomnetworks.com/hs-java.git -cd hs-java -cabal install $CABAL_OPT -cd .. -rm -rf hs-java +gitinstallWithCustomSetup git://wien.tomnetworks.com/hs-boehmgc.git echo DONE