on master help sign in
bash: use build environment from Makefile
442b27aMarkus Heiser
@@ -97,6 +97,13 @@ searx.brand:
97 $(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
97 $(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
98 $(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
98 $(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
99 $(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
99 $(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
100+ $(Q)echo "build utils/brand.env"
101+ $(Q)echo "export GIT_URL='$(GIT_URL)'" > utils/brand.env
102+ $(Q)echo "export ISSUE_URL='https://github.com/asciimoo/searx/issues'" >> utils/brand.env
103+ $(Q)echo "export SEARX_URL='$(SEARX_URL)'" >> utils/brand.env
104+ $(Q)echo "export DOCS_URL='$(DOCS_URL)'" >> utils/brand.env
105+ $(Q)echo "export PUBLIC_INSTANCES='https://searx.space'" >> utils/brand.env
106+
100
107
101# node / npm
108# node / npm
102# ----------
109# ----------
manage.sh+8
@@ -10,6 +10,7 @@ PYTHONPATH="$BASE_DIR"
10SEARX_DIR="$BASE_DIR/searx"
10SEARX_DIR="$BASE_DIR/searx"
11ACTION="$1"
11ACTION="$1"
12
12
13+. "${BASE_DIR}/utils/brand.env"
13
14
14#
15#
15# Python
16# Python
@@ -186,6 +187,13 @@ Commands
186 Build
187 Build
187 -----
188 -----
188 locales - Compile locales
189 locales - Compile locales
190+
191+Environment:
192+ GIT_URL: ${GIT_URL}
193+ ISSUE_URL: ${ISSUE_URL}
194+ SEARX_URL: ${SEARX_URL}
195+ DOCS_URL: ${DOCS_URL}
196+ PUBLIC_INSTANCES: ${PUBLIC_INSTANCES}
189"
197"
190}
198}
191
199
utils/brand.envnew file+5
@@ -0,0 +1,5 @@
1+export GIT_URL='https://github.com/asciimoo/searx'
2+export ISSUE_URL='https://github.com/asciimoo/searx/issues'
3+export SEARX_URL='https://searx.me'
4+export DOCS_URL='https://asciimoo.github.io/searx'
5+export PUBLIC_INSTANCES='https://searx.space'