Module: check_mk
Branch: master
Commit: ee0a9004dd48d0ffb2ccae5fdf18de64ee189ba6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee0a9004dd48d0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 10 09:12:56 2014 +0200
windows agent metadata: Fixed version calulation for patch releases
---
agents/windows/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/agents/windows/Makefile b/agents/windows/Makefile
index c84baf0..a88ec5a 100755
--- a/agents/windows/Makefile
+++ b/agents/windows/Makefile
@@ -68,8 +68,9 @@ check_mk_agent-64.res: check_mk_agent.rc
$(WINDRES_64) $< -O coff -o $@
check_mk_agent.rc: check_mk_agent.rc.in
- V=$(VERSION) ; V=$${V//./, } ; V=$${V//i/, 1} ; V=$${V//b/, 2} ; \
- if [ $${#V} -eq 12 ]; then V+=", 0"; fi ; \
+ V=$(VERSION) ; V=$${V//./, } ; V=$${V//i/, 1} ; V=$${V//b/, 2} ; V=$${V//p/0} ; \
+ if [ $${#V} -eq 6 ]; then V+=", 0"; fi ; \
+ if [ $${#V} -eq 11 ]; then V+="00"; fi ; \
sed "s/%VERSION%/$(VERSION)/g;s/%YEAR%/$$(date +%Y)/g" check_mk_agent.rc.in
> check_mk_agent.rc ; \
sed -i "s/%PVERSION%/$$V/g" check_mk_agent.rc