Check for existence of xmlgrep in opensuse mingw fetcher script

This commit is contained in:
Paweł Forysiuk 2011-11-24 01:52:02 +01:00 committed by Christian Dywan
parent e20a92e6ce
commit e6d97efa43

View file

@ -21,6 +21,12 @@ then
UPDATE=yes UPDATE=yes
fi fi
which xmlgrep 2> /dev/null && HAVE_XMLGREP=1 || HAVE_XMLGREP=0
if [[ "$HAVE_XMLGREP" == "0" ]]; then
echo -e "\nPlease install xmlclitools http://robur.slu.se/jensl/xmlclitools\n"
exit
fi
# create download and build directory # create download and build directory
mkdir -p $DOWNLOAD_PATH mkdir -p $DOWNLOAD_PATH
mkdir -p $BUILD_PATH mkdir -p $BUILD_PATH