summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-22 10:36:19 +0200
committerGitHub <noreply@github.com>2021-06-22 10:36:19 +0200
commit2530576f244aef669d4261144a8dd4b47fd8c6b5 (patch)
tree641ce08e889f8f85e99781f09ea73c01718968a0 /manage
parentfb2f4ba902200c2a9d3ce3358adbfa1e51ae9039 (diff)
parentc1f72b71ba1dbe51d16fcd39edb71c2ae1ddbdc6 (diff)
downloadsearxng-2530576f244aef669d4261144a8dd4b47fd8c6b5.tar.gz
searxng-2530576f244aef669d4261144a8dd4b47fd8c6b5.zip
Merge pull request #157 from searxng/mod_static_build
static build: move generated files to searx/static/themes/*/src/generated
Diffstat (limited to 'manage')
-rwxr-xr-xmanage14
1 files changed, 13 insertions, 1 deletions
diff --git a/manage b/manage
index 3a7a9f094..f9e6861b0 100755
--- a/manage
+++ b/manage
@@ -86,6 +86,8 @@ themes.* :
all : build all themes
oscar : build oscar theme
simple : build simple theme
+pygments.* :
+ less : build LESS files for pygments
EOF
}
@@ -295,7 +297,7 @@ gecko.driver() {
}
node.env() {
- if ! required_commands npm fontforge ttfautohint; then
+ if ! required_commands npm; then
info_msg "to install build tools use::"
info_msg " sudo -H ./utils/searx.sh install buildhost"
die 1 "install needed build tools first"
@@ -325,6 +327,15 @@ node.clean() {
dump_return $?
}
+pygments.less() {
+ build_msg PYGMENTS "searx_extra/update/update_pygments.py"
+ if ! pyenv.cmd python searx_extra/update/update_pygments.py; then
+ build_msg PYGMENTS "building LESS files for pygments failed"
+ return 1
+ fi
+ return 0
+}
+
py.build() {
build_msg BUILD "python package ${PYDIST}"
pyenv.cmd python setup.py \
@@ -462,6 +473,7 @@ test.clean() {
themes.all() {
( set -e
+ pygments.less
node.env
themes.oscar
themes.simple