[Cogl] [PATCH] mingw-fetch-dependencies: Add the -L option when using curl

Neil Roberts neil at linux.intel.com
Mon Jan 20 07:59:40 PST 2014


The -L option makes curl follow redirections. This is needed for
downloading glext.h because khronos.org is using a redirect.
---
 build/mingw/mingw-fetch-dependencies.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/mingw/mingw-fetch-dependencies.sh b/build/mingw/mingw-fetch-dependencies.sh
index 3014b30..6544bfe 100755
--- a/build/mingw/mingw-fetch-dependencies.sh
+++ b/build/mingw/mingw-fetch-dependencies.sh
@@ -52,7 +52,7 @@ function download_file ()
 
     case "$DOWNLOAD_PROG" in
 	curl)
-	    curl -o "$DOWNLOAD_DIR/$filename" "$url";
+	    curl -L -o "$DOWNLOAD_DIR/$filename" "$url";
 	    ;;
 	*)
 	    $DOWNLOAD_PROG -O "$DOWNLOAD_DIR/$filename" "$url";
-- 
1.8.4.2



More information about the Cogl mailing list