cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: release and daily-snapshot tarballs

From: Guenter <lists_at_gknw.net>
Date: Mon, 27 Oct 2014 05:13:25 +0100

Hi Dennis,
On 27.10.2014 02:54, dev wrote:
> Unrelated, but sort of related.
>
> My nightly build log shows that something has been broken for a while :
[snip]

there's a more simple way to check for latest builds ...
examine the daily snapshot download page source, there you find tags
from which you can very easily obtain latest tarball; f.e. I use in a
shell script:

SNAPURL="http://curl.haxx.se/snapshots/"
SNAPEXT="tar.bz2"
NEWEST=$(wget -q -O - ${SNAPURL} | sed -ne "s/^NEWEST ${SNAPEXT} //p")
test -z "${NEWEST}" && echo -e "ERROR: couldnt find 'NEWEST ${SNAPEXT}'
tag!" && exit 1
echo -e "Newest tarball is ${NEWEST}"
if test ! -f "${NEWEST}"; then
     echo -e "Downloading tarball ${NEWEST}"
     wget -q -O ${NEWEST} ${SNAPURL}${NEWEST}
     test $? -ne 0 && echo -e "ERROR: downloading tarball failed!" && exit 1
fi

if you prefer tar.gz then set SNAPEXT to this extension ...

another way is this script:
http://curl.haxx.se/dev/autocurl.txt

HTH, Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-27