tech-misc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: src snapshot archives?



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 <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index