summaryrefslogtreecommitdiffstats
path: root/ml/dlib/docs/testenv
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xml/dlib/docs/testenv31
-rwxr-xr-xml/dlib/docs/testenv_rel24
2 files changed, 55 insertions, 0 deletions
diff --git a/ml/dlib/docs/testenv b/ml/dlib/docs/testenv
new file mode 100755
index 00000000..8d2ce6bc
--- /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
+
diff --git a/ml/dlib/docs/testenv_rel b/ml/dlib/docs/testenv_rel
new file mode 100755
index 00000000..fff4a7be
--- /dev/null
+++ b/ml/dlib/docs/testenv_rel
@@ -0,0 +1,24 @@
+#/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
+}
+
+./testenv
+
+echo Testing environment for needed release building utilities
+
+
+#flip -h > /dev/null || return_error "flip";
+unix2dos -h &> /dev/null || return_error "unix2dos";
+#wine --help &> /dev/null || return_error "wine";
+
+
+echo All needed utilities found
+exit 0
+