1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Merge pull request #224 from olof/update_version_on_release

build: update __version__ as well on release
This commit is contained in:
Johan Andersson 2015-03-25 00:08:24 +01:00
commit 9ba730b524

View File

@ -68,9 +68,10 @@ clean_releasedir:
rm -rf $(RELEASE_DIR)
release: $(RELEASE_DIR) release-test
cd $(RELEASE_DIR) && \
set -e; cd $(RELEASE_DIR) && \
sed -i -r -e 's/^(LATEST_RELEASE = ).*/\1$(RELEASE)/' Makefile;\
git add svtplay-dl Makefile; \
sed -i -r -e 's/^(__version__ = ).*/\1"$(RELEASE)"/' lib/svtplay_dl/__init__.py;\
git add svtplay-dl Makefile lib/svtplay_dl/__init__.py; \
git commit -m "Prepare for release $(RELEASE)";
(cd $(RELEASE_DIR) && git format-patch --stdout HEAD^) | git am