dlib/docs/testenv
Davis King b97a64ed7f Changed the scripts so that the environment tests for makedocs only check
things really needed by makedocs.  Things needed by makerel are now in their
own check.  Also switched to unix2dos instead of unsing flip since unix2dos is
more common.

--HG--
rename : docs/testenv => docs/testenv_rel
2013-01-23 19:42:06 -05:00

30 lines
750 B
Plaintext
Executable File

#/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";
echo All needed utilities found
exit 0