This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New contributor on [detect mirrors]


> [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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]