savannah-hackers
[Top][All Lists]
Advanced

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

[Savannah-hackers] website -> savannah migration and auto-updates files


From: Loic Dachary
Subject: [Savannah-hackers] website -> savannah migration and auto-updates files
Date: Fri, 9 Mar 2001 14:12:42 +0100 (CET)

Bradley M. Kuhn writes:
 > There are at least two cases, /events.html and /server/new-software.html,
 > where files are updated automatically by cron jobs in /var/www/.  I can't
 > see anywhere that this has been addressed yet.  Have we addressed it yet?

 It was not. I'm aware of this and I did a commit by hand from time to time. 

 > Here's an idea:
 > 
 >   Only templates and programs are actually stored in subversions' CVS
 >   server.  That way, the generated HTML files would be basically "derived
 >   objects".  They could be placed in the .cvsignore in the directories,
 >   perhaps with a comment indicating what script generates them.  I could
 >   make /events_template.html, which I would grab each night.
 > 
 > 
 > Note, BTW, that the /events.html is generated from data that is kept on
 > fencepost.  I transfer the generated file over now by putting it in the
 > alpha FTP directory.  I suppose it can continue to be done that way, but it
 > means I would have to:
 > 
 >      (0) grab the template off www.gnu.org
 > 
 >      (1) generate the events.html
 > 
 >      (2) put the events.html in alpha.gnu.org/
 > 
 >      (3) have gnudist:~www/bin/nightly grab the file and put it in place
 > 
 > This isn't that hard to do (only step (0) is new), but it isn't very clean.

 Why not do this (that's how I handle the /jobs pages):

 (on machine A, can be alpha or gnudist or any box).

 . mkdir events
 . cd events ; cvs checkout events.html
 . the cron job generates events.html in the events directory
   and does a cvs commit -m 'nightly update' events.html

 It seems simple and natural to me. If you don't have time to do it and 
you like the idea, I'll take care of this. If you could just give me a 
pointer or two (if it's not in sysadmin.texi) to find where is what. I
have a direct interest to solve this because I start to get bored to 
cvs commit the events.html every day ;-)

        Cheers,

-- 
Loic   Dachary         http://www.dachary.org/  address@hidden
24 av Secretan         http://www.senga.org/      address@hidden
75019    Paris         Tel: 33 1 42 45 09 16        address@hidden
        GPG Public Key: http://www.dachary.org/loic/gpg.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]