try curl before wget, workaround for issue with FTP PASV
authorKshitij Bansal <kshitij@cs.nyu.edu>
Thu, 12 Feb 2015 13:49:50 +0000 (08:49 -0500)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Thu, 12 Feb 2015 13:49:50 +0000 (08:49 -0500)
contrib/get-antlr-3.4

index 74bce743e609db49807363f241029dd6086c2827..436ef6a8d098d158b1022080090afeedcde4ffa2 100755 (executable)
@@ -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