Skip to content

Commit

Permalink
Parameterize/generalize line in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jan 18, 2017
1 parent b34c182 commit bdd469f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SHELL=/bin/bash -eo pipefail
CLEAN_DIRS=argcomplete

release_major:
$(eval export TAG=$(shell git describe --tags --match 'v*.*.*' | perl -ne '/^v(\d)+\.(\d)+\.(\d+)+/; print "v@{[$$1+1]}.0.0"'))
Expand All @@ -21,7 +20,7 @@ release:
$(eval RELEASES_API=https://api.github.com/repos/${REMOTE}/releases)
$(eval UPLOADS_API=https://uploads.github.com/repos/${REMOTE}/releases)
git pull
git clean -x --force ${CLEAN_DIRS}
git clean -x --force $$(python setup.py --name)
sed -i -e "s/version=\([\'\"]\)[0-9]\+\.[0-9]\+\.[0-9]\+/version=\1$${TAG:1}/" setup.py
git add setup.py
TAG_MSG=$$(mktemp); \
Expand Down

0 comments on commit bdd469f

Please sign in to comment.