-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
47 lines (35 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# ===================
# i18next translation
# ===================
# Which translation files to convert from
# GNU gettext PO format into i18next JSON format
LANGUAGES = $(basename $(notdir $(wildcard po/*.po) ))
# Convert single translation file
po-to-json:
@echo
@echo ------------------------
@echo Converting language \"$(lang)\"
@echo ------------------------
I18NEXT_LANG=$(lang) yarn run i18next-po-to-json
# Convert all translation files
gettext-to-json:
$(foreach language,$(LANGUAGES),make po-to-json lang=$(language);)
# ===========
# bumpversion
# ===========
$(eval venvpath := .venv)
$(eval pip := $(venvpath)/bin/pip)
$(eval python := $(venvpath)/bin/python)
$(eval bump2version := $(venvpath)/bin/bump2version)
virtualenv:
@test -e $(python) || python3 -m venv --system-site-packages $(venvpath)
bumpversion: virtualenv
@$(venvpath)/bin/pip install bump2version
$(bump2version) $(bump)
# =======
# release
# =======
push:
git push && git push --tags
git push lqdn && git push lqdn --tags
release: bumpversion push