|
@@ -9,6 +9,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils/lib.sh"
|
|
source "${REPO_ROOT}/utils/brand.env"
|
|
source "${REPO_ROOT}/utils/brand.env"
|
|
source_dot_config
|
|
source_dot_config
|
|
|
|
|
|
|
|
+# shellcheck source=utils/lib_static.sh
|
|
|
|
+source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_static.sh"
|
|
|
|
+
|
|
# config
|
|
# config
|
|
|
|
|
|
PYOBJECTS="searx"
|
|
PYOBJECTS="searx"
|
|
@@ -42,53 +45,54 @@ PYLINT_OPTIONS="-m pylint -j 0 --rcfile .pylintrc"
|
|
|
|
|
|
help() {
|
|
help() {
|
|
cat <<EOF
|
|
cat <<EOF
|
|
-buildenv
|
|
+buildenv:
|
|
rebuild ./utils/brand.env
|
|
rebuild ./utils/brand.env
|
|
-babel.compile
|
|
+babel.compile:
|
|
pybabel compile ./searx/translations
|
|
pybabel compile ./searx/translations
|
|
-data.*
|
|
+data.:
|
|
all : update searx/languages.py and ./data/*
|
|
all : update searx/languages.py and ./data/*
|
|
languages : update searx/data/engines_languages.json & searx/languages.py
|
|
languages : update searx/data/engines_languages.json & searx/languages.py
|
|
useragents: update searx/data/useragents.json with the most recent versions of Firefox.
|
|
useragents: update searx/data/useragents.json with the most recent versions of Firefox.
|
|
-docs.*
|
|
+docs.:
|
|
html : build HTML documentation
|
|
html : build HTML documentation
|
|
live : autobuild HTML documentation while editing
|
|
live : autobuild HTML documentation while editing
|
|
gh-pages : deploy on gh-pages branch
|
|
gh-pages : deploy on gh-pages branch
|
|
prebuild : build reST include files (./${DOCS_BUILD}/includes)
|
|
prebuild : build reST include files (./${DOCS_BUILD}/includes)
|
|
clean : clean documentation build
|
|
clean : clean documentation build
|
|
-docker
|
|
+docker.:
|
|
build : build docker image
|
|
build : build docker image
|
|
push : build and push docker image
|
|
push : build and push docker image
|
|
-gecko.driver
|
|
+gecko.driver:
|
|
download & install geckodriver if not already installed (required for
|
|
download & install geckodriver if not already installed (required for
|
|
robot_tests)
|
|
robot_tests)
|
|
-node.*
|
|
+node.:
|
|
env : download & install npm dependencies locally
|
|
env : download & install npm dependencies locally
|
|
clean : drop npm installations
|
|
clean : drop npm installations
|
|
-py.*
|
|
+py.:
|
|
build : Build python packages at ./${PYDIST}
|
|
build : Build python packages at ./${PYDIST}
|
|
clean : delete virtualenv and intermediate py files
|
|
clean : delete virtualenv and intermediate py files
|
|
-pyenv.* :
|
|
+pyenv.:
|
|
install : developer install of searx into virtualenv
|
|
install : developer install of searx into virtualenv
|
|
uninstall : uninstall developer installation
|
|
uninstall : uninstall developer installation
|
|
cmd ... : run command ... in virtualenv
|
|
cmd ... : run command ... in virtualenv
|
|
OK : test if virtualenv is OK
|
|
OK : test if virtualenv is OK
|
|
pypi.upload:
|
|
pypi.upload:
|
|
Upload python packages to PyPi (to test use pypi.upload.test)
|
|
Upload python packages to PyPi (to test use pypi.upload.test)
|
|
-test.* :
|
|
+test.:
|
|
pylint : lint PYLINT_FILES, searx/engines, searx & tests
|
|
pylint : lint PYLINT_FILES, searx/engines, searx & tests
|
|
pep8 : pycodestyle (pep8) for all files except PYLINT_FILES
|
|
pep8 : pycodestyle (pep8) for all files except PYLINT_FILES
|
|
unit : run unit tests
|
|
unit : run unit tests
|
|
coverage : run unit tests with coverage
|
|
coverage : run unit tests with coverage
|
|
robot : run robot test
|
|
robot : run robot test
|
|
clean : clean intermediate test stuff
|
|
clean : clean intermediate test stuff
|
|
-themes.* :
|
|
+themes.:
|
|
all : build all themes
|
|
all : build all themes
|
|
oscar : build oscar theme
|
|
oscar : build oscar theme
|
|
simple : build simple theme
|
|
simple : build simple theme
|
|
-pygments.* :
|
|
+pygments.:
|
|
less : build LESS files for pygments
|
|
less : build LESS files for pygments
|
|
EOF
|
|
EOF
|
|
|
|
+ static_help
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|