From 8389130d83265c49169193d1b74af23e52a503a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Sat, 9 Jul 2016 21:44:11 +0200 Subject: [PATCH] add maintenance goal to update maintenance badge MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 317d41e..bba1dec 100755 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ SHELL = /bin/sh # INTERNAL VARIABLES # ###################### TIMESTAMP := $(shell /bin/date "+%Y%m%d%H%M%S") +CURRENT_YEAR := $(shell /bin/date "+%Y") USERID := $(shell id -u) GREEN := $(shell tput -Txterm setaf 2) WHITE := $(shell tput -Txterm setaf 7) @@ -70,6 +71,12 @@ update-parent: ##@maintenance Updates the Maven parent to its latest version git add pom.xml git commit pom.xml -s -S -m 'Update to latest parent' +.PHONY: update-maintenance-badge +update-maintenance-badge: ##@maintenance Updates the maintenance badge to the current year + sed -i -e "s/maintenance\/yes\/[0-9]*/maintenance\/yes\/$(CURRENT_YEAR)/" README.asciidoc + git add README.asciidoc + git commit pom.xml -s -S -m 'Update maintenance badge' + .PHONY: release-into-local-nexus release-into-local-nexus: ##@release Release all artifacts into a local nexus mvn clean deploy scm:tag -Prelease -Drevision=$(TIMESTAMP) -DpushChanges=false -DskipLocalStaging=true -Drelease=local -- 2.11.4.GIT