Commit 442e4ebc authored by The GAFAM tech collective's avatar The GAFAM tech collective
Browse files

Add "bumpversion" and "release" make targets

parent 1af64250
[bumpversion]
current_version = 0.1.0
files = package.json
search =
"version": "{current_version}",
__version__ = '{current_version}';
commit = True
tag = True
tag_name = {new_version}
allow_dirty = True
......@@ -15,6 +15,7 @@ in progress
- Add missing Japanese translation for Google poster using Google Translate ;]
- Complete package.json file
- Improve translation file conversion using ``make gettext-to-json``
- Add "bumpversion" and "release" make targets
2018-01-12 0.1.0
================
......
# ===================
# i18next translation
# ===================
# Which translation files to convert from
# GNU gettext PO format into i18next JSON format
LANGUAGES = fr en de jp
......@@ -14,3 +18,28 @@ po-to-json:
# Convert all translation files
gettext-to-json:
$(foreach language,$(LANGUAGES),make po-to-json lang=$(language);)
# ===========
# bumpversion
# ===========
$(eval venvpath := .venv27)
$(eval bumpversion := $(venvpath)/bin/bumpversion)
virtualenv:
@test -e $(venvpath)/bin/python || `command -v virtualenv` --python=`command -v python` --no-site-packages $(venvpath)
bumpversion: virtualenv
@$(venvpath)/bin/pip install bumpversion
$(bumpversion) $(bump)
# =======
# release
# =======
push:
git push && git push --tags
release: bumpversion push
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment