Module: check_mk
Branch: master
Commit: d60eab79864c39f6a3a9da0d3296946100bdc907
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d60eab79864c39…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 11 13:19:33 2014 +0200
Fixed version transform for nightly builds
---
agents/windows/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/agents/windows/Makefile b/agents/windows/Makefile
index a88ec5a..f247f04 100755
--- a/agents/windows/Makefile
+++ b/agents/windows/Makefile
@@ -69,8 +69,9 @@ check_mk_agent-64.res: check_mk_agent.rc
check_mk_agent.rc: check_mk_agent.rc.in
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 ; \
+ if [ $${#V} -eq 6 ]; then V+=", 0"; fi ; \ # e.g. 1.2.4
+ if [ $${#V} -eq 12 ]; then V+=", 0"; fi ; \ # nightly builds
+ if [ $${#V} -eq 11 ]; then V+="00"; fi ; \ # i1 releases
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