Update Makefile to auto-bump version number

This commit is contained in:
JC Brand 2013-09-15 17:03:52 +02:00
parent 2be1b58721
commit bc31781309

View File

@ -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)/*