hledger/bin/compile.sh

15 lines
402 B
Bash
Raw Normal View History

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