hledger/cabal-install.sh
2018-02-16 23:11:10 -08:00

28 lines
810 B
Bash
Executable File

#!/usr/bin/env bash
# Install all hledger packages using cabal (if you prefer it to stack).
# cabal.project may be a newer way.
# Ensure cabal sees the latest available packages
cabal update
# Make a local sandbox - optional, recommended for reliable installs
cabal sandbox init
# 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
# Traditional pre-ceremony to propitiate the install gods
cabal install alex happy
# Build and install to ./cabal-sandbox-bin (or ~/.cabal/bin without a sandbox)
cabal install \
./hledger-lib \
./hledger \
./hledger-ui \
./hledger-web \
./hledger-api \