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
1 changed files with 15 additions and 4 deletions

View File

@ -56,8 +56,19 @@ get_url() {
return
fi
echo No tool available to retrieve URLs. Please install curl or wget. >2
exit
# Desperate?
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.
@ -308,9 +319,9 @@ if $svn_build; then
build_module chocolate-doom-svn ""
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
cd $CHOCOLATE_DOOM_DIR