summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2017-01-03 16:52:55 +0000
committerNarayan Kamath <narayan@google.com>2017-01-03 16:54:20 +0000
commitff2aa668905646fd3a496125f41e5cdbd269047e (patch)
tree5b5715ea19177448ebb5406620a7fb538c3f39e3
parent73b241b3de7382b3942b6cbc00cfdb21680e6627 (diff)
downloadzlib-ff2aa668905646fd3a496125f41e5cdbd269047e.tar.gz
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
-rwxr-xr-xupdate_zlib.sh2
1 files changed, 1 insertions, 1 deletions
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"