mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
16 lines
428 B
Bash
Executable File
16 lines
428 B
Bash
Executable File
#!/bin/sh
|
|
# Compile all add-on scrips in this directory.
|
|
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
echo "building hledger libraries"
|
|
stack build hledger
|
|
|
|
echo "installing extra libraries needed by scripts"
|
|
stack install string-qq
|
|
|
|
echo "compiling hledger-* scripts"
|
|
for f in hledger-*.hs; do stack ghc -- "$f"; done
|
|
# stack script --compile would install extra libs more automatically
|
|
# but would also run scripts, which we don't want
|