summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/get-antlr-3.46
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/get-antlr-3.4 b/contrib/get-antlr-3.4
index 74bce743e..436ef6a8d 100755
--- a/contrib/get-antlr-3.4
+++ b/contrib/get-antlr-3.4
@@ -15,10 +15,10 @@ if ! [ -e src/parser/cvc/Cvc.g ]; then
fi
function webget {
- if which wget &>/dev/null; then
- wget -c -O "$2" "$1"
- elif which curl &>/dev/null; then
+ if which curl &>/dev/null; then
curl "$1" >"$2"
+ elif which wget &>/dev/null; then
+ wget -c -O "$2" "$1"
else
echo "Can't figure out how to download from web. Please install wget or curl." >&2
exit 1
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback