2017-01-08 21:24:33 +03:00
|
|
|
#!/bin/sh
|
2021-01-12 21:55:00 +03:00
|
|
|
# Compile all add-on scripts in this directory.
|
2021-01-12 23:09:02 +03:00
|
|
|
# Keep synced: compile.sh, scripts*.test, hledger-*.hs ...
|
2020-12-28 23:44:53 +03:00
|
|
|
|
|
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
|
2021-01-12 21:55:00 +03:00
|
|
|
echo "building hledger libraries for scripts"
|
2017-01-08 21:24:33 +03:00
|
|
|
stack build hledger
|
2020-12-28 23:44:53 +03:00
|
|
|
|
2021-01-12 21:55:00 +03:00
|
|
|
echo "installing extra libraries for scripts"
|
2022-10-02 07:38:48 +03:00
|
|
|
stack install string-qq microlens
|
2020-12-28 23:44:53 +03:00
|
|
|
|
2021-01-12 21:55:00 +03:00
|
|
|
echo "compiling the hledger-* scripts"
|
|
|
|
for f in `git ls-files 'hledger-*.hs'`; do stack ghc -- "$f"; done
|