From ae677cb64b4456ee336bc62484cbf022e9d6493f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 16 Jun 2021 19:18:13 +0200 Subject: [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 --- manage | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'manage') 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 $? -- cgit v1.2.3