automatically install dependencies

This commit is contained in:
Greg Weber 2011-08-01 09:34:36 -07:00
parent aa450bfa1d
commit 2ed25bd9fc

View File

@ -7,6 +7,8 @@ for package in $PACKAGES
do
echo Installing $package
cd $package
$CABAL configure --enable-tests && $CABAL build && $CABAL test && ./Setup.lhs install || exit
($CABAL configure --enable-tests ||
($CABAL install --only-dependencies && $CABAL configure --enable-tests)
) && $CABAL build && $CABAL test && ./Setup.lhs install || exit
cd ..
done