hledger/bin/compile.sh

11 lines
428 B
Bash
Raw Normal View History

2017-01-08 21:24:33 +03:00
#!/bin/sh
2017-07-05 20:27:44 +03:00
# Run this script (or "make addons") to compile all addons in this directory.
2017-01-08 21:24:33 +03:00
cd "$(dirname "$0")"
echo "building dependencies"
stack build hledger
stack install Chart Chart-diagrams colour Diff here # additional deps needed by addons
2017-01-08 21:24:33 +03:00
echo "building add-on commands"
for f in hledger-*.hs; do stack ghc -- -Wall -Werror $f; done
2017-01-08 21:24:33 +03:00
echo "add-on commands available:"
ls -F hledger-* | grep -vE '\.(hs|hi|o|dyn_hi|dyn_o)'