Le 28/05/2010 16:30, Guillaume Lelarge a écrit :
> Le 28/05/2010 16:09, Steve Singer a écrit :
>>
>>>
>>> I would be interested in working on this, but I couldn't find the
>>> Makefile Christopher told us about.
>>>
>>>
>>
>> The current makefile is literally
>>
>> ------------------
>> all:
>>         md5sum * > MD5SUMS
>>
>> ---------------
>>
>> and sits inside of the downloads/2.0/source  and downloads/1.2/source
>> directories on the webserver.  It does not appear to be in cvs (but
>> probably should be in the slony1-www project).
>>
> 
> OK, working on it.
> 

Got something, but not really something to be proud of. See attached files.

rssall.sh should be installed in the downloads directory. Makefile and
rss.sh should be in downloads/1.2/source and downloads/2.0/source
directories. If you execute make in one of the source directory, you
should get a versions.rss file in the downloads directory. I also
attached a copy of it.

There are two big issues:

  * beta and rc releases will be published in the versions.rss file,
    and we don't want that (we only want final releases).
  * pubDate is hard to get in the good format. As a matter of fact, I
    have no idea how to get it on the right format.

Moreover, I don't find my solution elegant to say the least :-/

I think a better idea would be to simply echo "Remember to update the
versions.rss file, please." when one executes the makefile. It's the
simplest idea, something that does not ask for a lot of work to build
it, and to actually do it for each release.

Comments?


-- 
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Attachment: rssall.sh
Description: Bourne shell script

all:
        md5sum * > MD5SUMS
        ./rss.sh > rss
        cd ../.. && ./rssall.sh > versions.rss

Attachment: rss.sh
Description: Bourne shell script

Attachment: versions.rss
Description: application/rss

_______________________________________________
Slony1-general mailing list
[email protected]
http://lists.slony.info/mailman/listinfo/slony1-general

Reply via email to