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
|
2017-02-02 22:48:09 +03:00
|
|
|
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"
|
2017-03-22 17:18:29 +03:00
|
|
|
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:"
|
2017-01-23 02:02:49 +03:00
|
|
|
ls -F hledger-* | grep -vE '\.(hs|hi|o|dyn_hi|dyn_o)'
|