Skip to content

Commit

Permalink
;pkg:hledger-install: "up to date" message for main tools like the ot…
Browse files Browse the repository at this point in the history
…hers
  • Loading branch information
simonmichael committed Dec 13, 2024
1 parent 2acb570 commit 57bc54b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hledger-install/hledger-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This was based on get-stack.sh which was copyright (c) 2015-2017, Stack contributors.

# This install script's version.
HLEDGER_INSTALL_VERSION=20241209
HLEDGER_INSTALL_VERSION=20241212

# Package versions to be installed by this install script.
# Keep synced with the tools above.
Expand Down Expand Up @@ -1054,19 +1054,25 @@ if [[ $(cmpver "$(cmd_version hledger 2>/dev/null)" $HLEDGER_VERSION) = 2 ]]; th
echo Installing hledger
try_install hledger-$HLEDGER_VERSION hledger-lib-$HLEDGER_LIB_VERSION $STACK_EXTRA_DEPS
echo
else
echo hledger is up to date
fi

if [[ $(cmpver "$(cmd_version hledger-ui 2>/dev/null)" $HLEDGER_UI_VERSION) = 2 ]]; then
echo Installing hledger-ui
try_install hledger-ui-$HLEDGER_UI_VERSION hledger-$HLEDGER_VERSION hledger-lib-$HLEDGER_LIB_VERSION $STACK_EXTRA_DEPS \
# brick-X.Y # when hledger-iadd requires a special brick, use the same here to reduce rebuilding
echo
else
echo hledger-ui is up to date
fi

if [[ $(cmpver "$(cmd_version hledger-web 2>/dev/null)" $HLEDGER_WEB_VERSION) = 2 ]]; then
echo Installing hledger-web
try_install hledger-web-$HLEDGER_WEB_VERSION hledger-$HLEDGER_VERSION hledger-lib-$HLEDGER_LIB_VERSION $STACK_EXTRA_DEPS
echo
else
echo hledger-web is up to date
fi

# Third-party addons.
Expand Down

0 comments on commit 57bc54b

Please sign in to comment.