hledger/cabal-install.sh

17 lines
588 B
Bash
Raw Normal View History

# Run this script to install all hledger packages using cabal
# (if you prefer using cabal to stack)
# use a sandbox in this directory to avoid build problems
cabal sandbox init
# maybe useful for some developers..
cabal sandbox add-source ./hledger-lib
cabal sandbox add-source ./hledger
cabal sandbox add-source ./hledger-ui
cabal sandbox add-source ./hledger-web
cabal sandbox add-source ./hledger-api
# build and install
cabal install ./hledger-lib ./hledger ./hledger-ui ./hledger-web ./hledger-api \
&& echo "hledger executables successfully installed in ./.cabal-sandbox/bin"