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
|
|
|
|
2018-02-17 10:11:10 +03:00
|
|
|
# Ensure cabal sees the latest available packages
|
|
|
|
cabal update
|
|
|
|
|
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
|
2016-06-30 01:01:24 +03:00
|
|
|
|
2017-03-22 17:18:44 +03:00
|
|
|
# Traditional pre-ceremony to propitiate the install gods
|
|
|
|
cabal install alex happy
|
|
|
|
|
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 \
|