Update build script to build v1.6.0. Fix error message when no tool is

found to download from a URL.

Subversion-branch: /buildscripts
Subversion-revision: 2345
This commit is contained in:
Simon Howard 2011-06-09 20:17:53 +00:00
parent 36ed64aac2
commit 3c55a3d934

View file

@ -56,8 +56,19 @@ get_url() {
return return
fi fi
echo No tool available to retrieve URLs. Please install curl or wget. >2 # Desperate?
exit
for l in lynx links elinks; do
if have_tool $l; then
echo "Using $l to download $url..." >&2
$l -source $url
return
fi
done
echo "No tool available to retrieve URLs. Please install curl or wget." >&2
exit -1
} }
# Extract a tar.gz file. # Extract a tar.gz file.
@ -308,9 +319,9 @@ if $svn_build; then
build_module chocolate-doom-svn "" build_module chocolate-doom-svn ""
else else
# Build v1.5.0 # Build v1.6.0
fetch_and_build_module http://mesh.dl.sourceforge.net/project/chocolate-doom/chocolate-doom/1.5.0/ chocolate-doom 1.5.0 "" fetch_and_build_module http://mesh.dl.sourceforge.net/project/chocolate-doom/chocolate-doom/1.6.0/ chocolate-doom 1.6.0 ""
fi fi
cd $CHOCOLATE_DOOM_DIR cd $CHOCOLATE_DOOM_DIR