Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
akbargumbira committed Aug 15, 2016
1 parent bcf660e commit 6d00120
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}

0 comments on commit 6d00120

Please sign in to comment.