summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-01 07:56:46 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-01 07:56:46 +0100
commit40843fe95ada52bc8791b4706392bda5afecf32e (patch)
treec7e128a721de44e6854136505bf2673c1b76bd0e /Makefile
parent2f6f9665a9fc6a1464ab07cb4ec848e2d28ee700 (diff)
downloadsearxng-40843fe95ada52bc8791b4706392bda5afecf32e.tar.gz
searxng-40843fe95ada52bc8791b4706392bda5afecf32e.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 85f549d8e..5a47129e4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ help:
@echo ' uninstall - uninstall (./local)'
@echo ' gh-pages - build docs & deploy on gh-pages branch'
@echo ' clean - drop builds and environments'
+ @echo ' project - re-build generic files of the searx project'
@echo ''
@$(MAKE) -s -f utils/makefile.include make-help
@echo ''
@@ -67,6 +68,18 @@ docs-live: pyenvinstall sphinx-live
$(GH_PAGES)::
@echo "doc available at --> $(DOCS_URL)"
+# update project files
+# --------------------
+
+PHONY += project engines-languages
+
+project: searx/data/engines_languages.json
+
+searx/data/engines_languages.json: pyenvinstall
+ $(PY_ENV_ACT); python utils/fetch_languages.py
+ mv engines_languages.json searx/data/engines_languages.json
+ mv languages.py searx/languages.py
+
# test
# ----