This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New contributor on [detect mirrors]
- From: DJ Delorie <dj at redhat dot com>
- To: lbenini at csr dot unibo dot it
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Nov 2004 17:48:37 -0500
- Subject: Re: New contributor on [detect mirrors]
- References: <4191402E.3000703@csr.unibo.it>
> [cite from http://gcc.gnu.org/projects/beginner.html]...
>
> Someone can give some additional info on the req. of this module?
You needed to read one more line:
> DJ Delorie <dj@redhat.com> has some scripts to do this already.
Get http://www.delorie.com/djgpp/check-mirrors
and http://www.delorie.com/djgpp/mirrors.txt
My crontab looks like this:
0 * * * * perl -e 'print time, " full"' > /home/ftp/pub/djgpp/mirror.ts
0 * * * * perl -e 'print time, " current"' > /home/ftp/pub/djgpp/current/mirror.ts
0 3 * * * /home/web/djgpp/check-mirrors
The theory is that, with a continuous update of the timestamp, you can
basically ask any given mirror when it last mirrored that directory.
By sprinkling the timestamps around, and tagging each uniquely (full
vs current for djgpp), you can also tell *what* they're mirroring, and
confirm the location (i.e. they didn't give you the URL for one
directory up).