dlib/docs/testenv
Davis King 754da0ef3c Properly organized the svn repository. Finally.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402199
2008-05-02 14:19:38 +00:00

31 lines
817 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
flip -h > /dev/null || return_error "flip";
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";
svn help > /dev/null || return_error "svn";
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";
wine --help &> /dev/null || return_error "wine";
echo All needed utilities found
exit 0