[icinga-checkins] icinga.org: icinga-web/master: * Added update version make target for release packages (ref #2208)

git at icinga.org git at icinga.org
Tue Feb 14 17:23:56 CET 2012


Module: icinga-web
Branch: master
Commit: 37afde9e877ce4d176324b23e28025234e519ed6
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=37afde9e877ce4d176324b23e28025234e519ed6

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Feb 14 17:23:14 2012 +0100

* Added update version make target for release packages (ref #2208)

---

 Makefile.in |    8 ++++++++
 doc/VERSION |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 2ce2fc5..e803035 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -87,6 +87,7 @@ none:
 	@printf "\nDevelopment targets:\n"
 	@printf "\t%-22s - %s\n" "devel-inplace-config" "Prepare src tree for running inplace"
 	@printf "\t%-22s - %s\n" "devel-reconfigure" "Clean and reconfigure source"
+	@printf "\t%-22s - %s\n" "devel-update-version" "Upgrades the version file"
 	@printf "\t%-22s - %s\n" "test" "Running tests"
 	@printf "\t%-22s - %s\n" "test-cs" "Running codestyle tests"
 	@printf "\n\n"
@@ -193,6 +194,13 @@ devel-reconfigure:
 	make distclean; \
 	sh $$EXEC
 
+devel-update-version:
+	@VFILE="doc/VERSION"; \
+        VERSION=`printf "%d.%d.%d" "$(VERSION_MAJOR)" "$(VERSION_MINOR)" "$(VERSION_PATCH)"`; \
+        test ! "X$(VERSION_EXTEN)" = "X" && VERSION=`printf "%s-%s" "$$VERSION" "$(VERSION_EXTEN)"`; \
+        echo "$$VERSION" > $$VFILE; \
+        echo "Upgraded $$VFILE to version $$VERSION"
+
 install-javascript:
 	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/pub/js
 	ln -sf $(DESTDIR)$(prefix)/lib/ext3 $(DESTDIR)$(prefix)/pub/js/ext3
diff --git a/doc/VERSION b/doc/VERSION
index 26ca594..fdd3be6 100644
--- a/doc/VERSION
+++ b/doc/VERSION
@@ -1 +1 @@
-1.5.1
+1.6.2





More information about the icinga-checkins mailing list