Re: src snapshot archives?

Manuel Bouyer <[email protected]> Thu, 27 Aug 2009 23:19:06 +0200
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
On Wed, Aug 26, 2009 at 10:47:18PM -0700, George Georgalis wrote:
> 
> In the past I have pulled an initial src tree from
> ftp://ftp.netbsd.org/pub/NetBSD-daily/
> but today I've found...
> ftp://ftp.netbsd.org/pub/NetBSD-daily/LOOK_ELSEWHERE
> which explains to go to the new url:
> http://nyftp.netbsd.org/pub/NetBSD-daily
> but since the protocol changed to http,
> it's a lot harder to script a CVS bootstrap
> 
> TAG=netbsd-5
> daily="http://nyftp.netbsd.org/pub/NetBSD-daily"
> last () { # Return the dated path of the last $TAG tgz
>         echo "ls -rx" \
>         | ftp -4 $daily/$TAG/ \
>         | awk '{print $1}'
>         }
> 
> (only works with ftp protocol)

ftp -o - http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/
works, but you need a more clever awk script to get the last tag

> and even when I get the timestamp, I can't get the source:
> Requesting http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-5/200908250000Z/source/sets/src.tgz
> ftp: Error retrieving file `500 Internal Error'

This I don't know.

-- 
Manuel Bouyer <[email protected]>
     NetBSD: 26 ans d'experience feront toujours la difference
--