Update Makefile to auto-bump version number
This commit is contained in:
parent
6dd0160a5b
commit
7922f17a79
10
Makefile
10
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)/*
|
||||
|
Loading…
Reference in New Issue
Block a user