From 6d00120957a7890979a901660e46c78281a1eadb Mon Sep 17 00:00:00 2001 From: Akbar Gumbira Date: Tue, 16 Aug 2016 01:00:54 +0200 Subject: [PATCH] Update makefile --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 41ef20c6..7f82b66c 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,11 @@ PLUGIN = qgis_resource_sharing WORK_DIR = /tmp/${PLUGIN} OUTPUT=${WORK_DIR}/${PLUGIN}.zip +VERSION=`cat metadata.txt | grep ^version | sed 's/version=//g'` + +release: zip release-tag + @python plugin_upload.py ${OUTPUT} + zip: @echo "Making zip package in the WORK_DIR" @mkdir -p ${WORK_DIR}/${PLUGIN} @@ -21,4 +26,7 @@ zip: @ls -lah ${OUTPUT} @echo "${OUTPUT}" - +release-tag: + @echo "Version: " ${VERSION} + @git tag v${VERSION} -m "Version ${VERSION}" + @git push --tags origin v${VERSION}