Revision: 324 http://trac.macosforge.org/projects/darwinbuild/changeset/324 Author: ssen Date: 2006-10-04 02:02:42 -0700 (Wed, 04 Oct 2006) Log Message: ----------- allow user to provide curl options, like proxy settings or cookies Modified Paths: -------------- trunk/darwinbuild/darwinbuild.common Modified: trunk/darwinbuild/darwinbuild.common =================================================================== --- trunk/darwinbuild/darwinbuild.common 2006-04-14 03:34:42 UTC (rev 323) +++ trunk/darwinbuild/darwinbuild.common 2006-10-04 09:02:42 UTC (rev 324) @@ -104,6 +104,8 @@ fi } +CURLARGS=${CURLARGS:-} + ### ### Download a .tar.gz file ### @@ -127,7 +129,7 @@ if [ ! -f "$destination/$filename" ]; then mkdir -p "$destination" echo "Attempting to download $master_site/$filename ..." - curl --fail \ + curl $CURLARGS --fail \ --silent \ --continue-at - \ --output "$destination/.tmp.${filename}" \