summaryrefslogtreecommitdiffstats
path: root/ml/dlib/docs/testenv
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:22 +0000
commitc21c3b0befeb46a51b6bf3758ffa30813bea0ff0 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /ml/dlib/docs/testenv
parentAdding upstream version 1.43.2. (diff)
downloadnetdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.tar.xz
netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.zip
Adding upstream version 1.44.3.upstream/1.44.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/docs/testenv')
-rwxr-xr-xml/dlib/docs/testenv31
1 files changed, 31 insertions, 0 deletions
diff --git a/ml/dlib/docs/testenv b/ml/dlib/docs/testenv
new file mode 100755
index 000000000..8d2ce6bc9
--- /dev/null
+++ b/ml/dlib/docs/testenv
@@ -0,0 +1,31 @@
+#/bin/sh
+#
+#This script checks to make sure all the commands we need are
+#present
+
+return_error()
+{
+ echo "Error, can't run the $1 command"
+ exit 1
+}
+
+
+echo Testing environment for needed utilities
+
+bc -h > /dev/null || return_error "bc";
+echo nothing | awk '{}' > /dev/null || return_error "awk";
+echo | sed -e "s/s/r/" > /dev/null || return_error "sed";
+htmlify > /dev/null || return_error "htmlify";
+echo | xargs > /dev/null || return_error "xargs";
+hg > /dev/null || return_error "hg";
+xsltproc -V > /dev/null || return_error "xsltproc";
+tar --help > /dev/null || return_error "tar";
+zip -h > /dev/null || return_error "zip";
+bzip2 -h &> /dev/null || return_error "bzip2";
+pygmentize -h &> /dev/null || return_error "pygmentize";
+which sphinx-build &> /dev/null || return_error "sphinx-build";
+
+
+echo All needed utilities found
+exit 0
+