From ff2aa668905646fd3a496125f41e5cdbd269047e Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Tue, 3 Jan 2017 16:52:55 +0000 Subject: update_zlib: Fix regex for detecting versions. The download link is now a relative link and not absolute. A future change will get rid of this script and switch to upstream mirroring from github. We can then use "git merge" to pull in a new version. Test: Ran manually, checked that 1.2.10 was fetched + unpacked. Change-Id: I408fa4f9ee7b0dd4c39c635925dc8687950ff0d4 --- update_zlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_zlib.sh b/update_zlib.sh index d1193aa..65572a0 100755 --- a/update_zlib.sh +++ b/update_zlib.sh @@ -10,7 +10,7 @@ base_dir=$(realpath $(dirname $0)) # Extract the latest version from the web page. new_version=$(wget -O - --no-verbose -q http://zlib.net/ | \ - grep 'http://zlib.net/zlib-[0-9].*.tar.gz' | \ + grep 'href=\"zlib-[0-9].*.tar.gz' | \ sed 's/.*zlib-\(.*\)\.tar\.gz.*/\1/') tgz_file="zlib-$new_version.tar.gz" -- cgit v1.2.3