2016-06-30 01:09:33 +03:00
|
|
|
#!/usr/bin/env bash
|
2016-10-22 00:47:22 +03:00
|
|
|
# Install all hledger packages using cabal (if you prefer it to stack).
|
|
|
|
# cabal.project may be a newer way.
|
2016-06-30 01:01:24 +03:00
|
|
|
|
2016-10-22 00:47:22 +03:00
|
|
|
# Make a local sandbox - optional, recommended for reliable installs
|
2016-06-30 01:01:24 +03:00
|
|
|
cabal sandbox init
|
|
|
|
|
2016-10-22 00:47:22 +03:00
|
|
|
# Tell sandbox about the local packages, recommended for 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
|
2016-06-30 01:01:24 +03:00
|
|
|
|
2016-10-22 00:47:22 +03:00
|
|
|
# Build and install to ./cabal-sandbox-bin (or ~/.cabal/bin without a sandbox)
|
|
|
|
cabal install \
|
|
|
|
./hledger-lib \
|
|
|
|
./hledger \
|
|
|
|
./hledger-ui \
|
|
|
|
./hledger-web \
|
|
|
|
./hledger-api \
|