2016-06-30 01:09:33 +03:00
|
|
|
#!/usr/bin/env bash
|
2016-06-30 01:01:24 +03:00
|
|
|
# Run this script to install all hledger packages using cabal
|
|
|
|
# (if you prefer using cabal to stack)
|
|
|
|
|
2016-06-30 01:09:33 +03:00
|
|
|
# make a sandbox in this directory to avoid build problems
|
2016-06-30 01:01:24 +03:00
|
|
|
cabal sandbox init
|
|
|
|
|
2016-06-30 01:09:33 +03:00
|
|
|
# might be useful for some developers..
|
2016-06-30 01:01:24 +03:00
|
|
|
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"
|