From 7922f17a7918235859831ac684983c3e5e816970 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 15 Sep 2013 17:03:52 +0200 Subject: [PATCH] Update Makefile to auto-bump version number --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7134a3174..ee292a549 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,17 @@ pot: merge: find ./locale -maxdepth 1 -mindepth 1 -type d -exec msgmerge {}/LC_MESSAGES/converse.po ./locale/converse.pot -U \; +bump: + sed -i s/\"version\":\ \"[0-9]\.[0-9]\.[0-9]\"/\"version\":\ \"$(VERSION)\"/ bower.json + sed -i s/\"version\":\ \"[0-9]\.[0-9]\.[0-9]\"/\"version\":\ \"$(VERSION)\"/ package.json + sed -i s/v[0-9]\.[0-9]\.[0-9]\.zip/v$(VERSION)\.zip/ index.html + sed -i s/v[0-9]\.[0-9]\.[0-9]\.tar\.gz/v$(VERSION)\.tar\.gz/ index.html + sed -i s/version\ =\ \'[0-9]\.[0-9]\.[0-9]\'/version\ =\ \'$(VERSION)\'/ docs/source/conf.py + sed -i s/release\ =\ \'[0-9]\.[0-9]\.[0-9]\'/release\ =\ \'$(VERSION)\'/ docs/source/conf.py + sed -i "s/^[0-9]\.[0-9]\.[0-9]\ \(Unreleased\)/$(VERSION)\ (`date +%Y-%m-%d`)/" CHANGES.rst release: - r.js -o build.js + r.js -o build.js && grunt cssmin clean: -rm -rf $(BUILDDIR)/*