;install: also list installed cabal, stack, pip versions

This commit is contained in:
Simon Michael 2023-03-24 07:25:38 -10:00
parent 69a8834803
commit 13cd01ca36

View File

@ -29,6 +29,13 @@ hledger-interest \
hledger-iadd \
"
# Additional install-related tools to be listed
INSTALL_TOOLS="\
stack \
cabal \
pip \
"
# Package versions to be installed by this install script.
# Keep synced with the tools above.
# When changing remember to also bump HLEDGER_INSTALL_VERSION.
@ -865,7 +872,7 @@ print_cmd_version() {
# Show the current installation status of the hledger packages.
print_installed_versions() {
for cmd in $HLEDGER_TOOLS ; do print_cmd_version "$cmd"; done
for cmd in $INSTALL_TOOLS $HLEDGER_TOOLS ; do print_cmd_version "$cmd"; done
}
# Run a command, but first log it with "Trying" prepended.