NetBSD-Users archive

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

getting netbsd-6 source



Hi All -

Back in 2007 I inquired about efficiently pulling netbsd src,
http://gnats.netbsd.org/36765

Considering release process and my needs, I began using the following
script (below) to get netbsd-$tag as efficiently as possible.

Today, I see the most current url

http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-6/201301060340Z/

however I'm getting errors opening ./source/ below that

http://nyftp.netbsd.org/pub/NetBSD-daily/netbsd-6/201301060340Z/source/

500 Internal Error

pub/NetBSD-daily/netbsd-6/201301060340Z/source/index.html:

An error occured on the server


anyone have an explanation?

Thanks,
-George


tag=netbsd-6
daily="http://nyftp.netbsd.org/pub/NetBSD-daily";
last=$(ftp -o - ${daily}/${tag}/ \
        | grep Z | sed -e 's/Z.*/Z/' -e 's/.*"//' \
        | tail -n1)
# big to small...
sets="xsrc gnusrc src syssrc sharesrc"
sets="gnusrc src syssrc sharesrc"
mkdir -p /usr/local/dist/$tag
cd /usr/local/dist/$tag

for srcset in $sets
 do ftp $daily/$tag/${last}/source/sets/${srcset}.tgz
 ( touch ${srcset}.tgz.extracting
 echo "Extracting ${srcset}.tgz"
 #progress -zf ${srcset}.tgz tar --directory / -xf -
 tar --directory / -xzf ${srcset}.tgz
 rm ${srcset}.tgz.extracting ) &
done

while [ -e *.extracting ] ; do sleep 1 ; done

echo "Updating source tree"
cd /usr/src && cvs -q upd -dP



-- 
George Georgalis, (415) 894-2710, http://www.galis.org/


Home | Main Index | Thread Index | Old Index