on master help sign in
searx/data/engines_languages.json: sort json file (no content change)

To get meaningfull diffs, the json file has to be sorted. Before applying any further content patch, the json file needs a inital sort (without changing any content). Sorted by:: import sys, json with open('engines_languages.json') as f: j = json.load(f) with open('engines_languages.json', 'w') as f: json.dump(j, f, indent=2, sort_keys=True) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit40843fe95ada52bc8791b4706392bda5afecf32e authorMarkus Heiser <markus.heiser@darmarit.de> dateSun 1 Mar 2020, 07:56 (7 years ago) parent2f6f966
3 files changed+27513−27497
Makefile+13 searx/data/engines_languages.json+27487−27487 utils/fetch_languages.py+13−10
Makefile+13
@@ -27,6 +27,7 @@ help:
2727 @echo ' uninstall - uninstall (./local)'
2828 @echo ' gh-pages - build docs & deploy on gh-pages branch'
2929 @echo ' clean - drop builds and environments'
30+ @echo ' project - re-build generic files of the searx project'
3031 @echo ''
3132 @$(MAKE) -s -f utils/makefile.include make-help
3233 @echo ''
@@ -67,6 +68,18 @@ docs-live: pyenvinstall sphinx-live
6768$(GH_PAGES)::
6869 @echo "doc available at --> $(DOCS_URL)"
6970
71+# update project files
72+# --------------------
73+
74+PHONY += project engines-languages
75+
76+project: searx/data/engines_languages.json
77+
78+searx/data/engines_languages.json: pyenvinstall
79+ $(PY_ENV_ACT); python utils/fetch_languages.py
80+ mv engines_languages.json searx/data/engines_languages.json
81+ mv languages.py searx/languages.py
82+
7083# test
7184# ----
7285
searx/data/engines_languages.json+27487−27487

This diff is too big to show here.

utils/fetch_languages.py+13−10

This diff is too big to show here.