X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=tools%2Finstallhaskellenv.sh;h=5bbe9914c2d5b36ff7a05b609a6012664aaf51fd;hp=32b019093273a395840a0a57b789cb526ee59c9e;hb=3573020fca0413c6d7823e2a1d70108f25766db0;hpb=69737e443614cbe6c2acec6c3f7f6918325d4435 diff --git a/tools/installhaskellenv.sh b/tools/installhaskellenv.sh index 32b0190..5bbe991 100755 --- a/tools/installhaskellenv.sh +++ b/tools/installhaskellenv.sh @@ -11,6 +11,19 @@ function gitinstall { 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 tmprepo + cd tmprepo + runhaskell Setup.hs configure --user $CABAL_OPT + runhaskell Setup.hs build + runhaskell Setup.hs install + cd .. + rm -rf tmprepo +} + rm -rf ~/.ghc ~/.cabal cabal update cabal install cabal-install $CABAL_OPT @@ -28,7 +41,6 @@ cabal install disassembler $CABAL_OPT # cabal install harpy $CABAL_OPT gitinstall git://wien.tomnetworks.com/harpy.git -# cabal install hs-boehmgc $CABAL_OPT -gitinstall git://wien.tomnetworks.com/hs-boehmgc.git +gitinstallWithCustomSetup git://wien.tomnetworks.com/hs-boehmgc.git echo DONE