summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-16 19:18:13 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-17 09:23:02 +0200
commitae677cb64b4456ee336bc62484cbf022e9d6493f (patch)
tree332274bcb21be495732ba17233bb8d98f65e47f9 /manage
parent14ba56fd1a9e82206f964a8830953a1b51eecbdd (diff)
downloadsearxng-ae677cb64b4456ee336bc62484cbf022e9d6493f.tar.gz
searxng-ae677cb64b4456ee336bc62484cbf022e9d6493f.zip
[enh] ./manage node.env - check build tools first
The node.env build environment require npm, ttfautohint and fontforge installed in the OS. These tools can be installed by:: sudo -H ./utils/searx.sh install buildhost If one of the tools is not installed, the script node.env stops with a appropriate message. BTW: We ignore CentOS-7 as developer & build platform Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage11
1 files changed, 7 insertions, 4 deletions
diff --git a/manage b/manage
index c042d8ebd..7019f429b 100755
--- a/manage
+++ b/manage
@@ -295,15 +295,18 @@ gecko.driver() {
}
node.env() {
- # shellcheck disable=SC2230
- which npm &> /dev/null || die 1 'node.env - npm is not found!'
+ if ! required_commands npm fontforge ttfautohint; then
+ info_msg "to install build tools use::"
+ info_msg " sudo -H ./utils/searx.sh install buildhost"
+ die 1 "install needed build tools first"
+ fi
( set -e
- build_msg INSTALL "theme: oscar"
+ build_msg INSTALL "searx/static/themes/oscar/package.json"
npm --prefix searx/static/themes/oscar install
- build_msg INSTALL "theme: simple"
+ build_msg INSTALL "searx/static/themes/simple/package.json"
npm --prefix searx/static/themes/simple install
)
dump_return $?