From 573b08bb90c8d1d863e340d95f6ae35aa9c2e24b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 6 Jun 2017 09:20:55 -0700 Subject: [PATCH] tools: make setversion: also update hledger-api package version --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c403af65e..3480ab7af 100644 --- a/Makefile +++ b/Makefile @@ -1258,6 +1258,12 @@ hledger-web/package.yaml: $(VERSIONFILE) \ perl -p -e "s/(hledger(-lib|-web)? *[>=]= *).*/\$${1}$(VERSION)/" -i $@ perl -p -e "s/(-DVERSION=\")[^\"]+/\$${1}$(VERSION)/" -i $@ +hledger-api/package.yaml: $(VERSIONFILE) \ + $(call def-help-hide,hledger-api/package.yaml, update the version in this file ) + perl -p -e "s/(^version *: *).*/\$${1}'$(VERSION)'/" -i $@ + perl -p -e "s/(hledger(-lib|-api)? *[>=]= *).*/\$${1}$(VERSION)/" -i $@ + perl -p -e "s/(-DVERSION=\")[^\"]+/\$${1}$(VERSION)/" -i $@ + site/manual-start.md: $(VERSIONFILE) \ $(call def-help-hide,site/manual-start.md, update the version in this file ) perl -p -e "s/(this version documents hledger and hledger-web) +[0-9.]+/\1 $(VERSION)/" -i $@