Tool to transform OLTP database schemas to OLAP database schemas automatically
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
425 B

set -e
SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
if [ -f "$SRC_TGZ" ]; then
cabal install --only-dependencies "$SRC_TGZ";
cp $HOME/.ghc/$ARCH-$GHC_VER/package.conf.d/package.cache package.cache.bak
cabal install "$SRC_TGZ";
rm "$SRC_TGZ";
mv package.cache.bak $HOME/.ghc/$ARCH-$GHC_VER/package.conf.d/package.cache
echo "expected '$SRC_TGZ' not found";
exit 1;