[Savannah-hackers] Re: gnudist and savannah projects web sync
Vincent Caron [EMAIL PROTECTED] said: Paul Fisher wrote: In order to update files on commit for the web repository, when a file is committed on savannah, a HTTP POST is sent to http://www.gnu.org/savannah/sync. The post transaction must have a Content-Type of application/x-savannah-sync. The body content contains one filename per line. Lines are terminated by LF. Filenames are relative to httpd's root directory and such filenames should not start with a /, or contain references to ... Filenames are limited to printable ASCII characters. For example, if the files home.html and software/year2000.html need to be updated, then a POST might look like: POST /savannah/update HTTP/1.1 Content-Length: 33 Content-Type: application/x-savannah-sync home.html software/year2000.html If the POST is accepted, then a 200 response is returned. Attached is a Perl implementation of the client part. For Savannah hackers/admin : it requires LWP (namely libwww-perl for Debian), and thus adds a dependency on backend/gnu-specific/sv_sync_www.pl. Are you okay with that ? (this package is not installed on subversions.gnu.org) It's free software, so it's ok. Did you commited your new script in the CVS. Please add a word about it (dependancies) in the README there. I installed the package. -- Mathieu Roy Homepage: http://yeupou.coleumes.org Not a native english speaker: http://stock.coleumes.org/doc.php?i=/misc-files/flawed-english ___ Savannah-hackers mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/savannah-hackers
[Savannah-hackers] Re: gnudist and savannah projects web sync (code)
OK, I actually forgot to attach the code. Beat me. sv_sync_www_new.pl Description: Perl program ___ Savannah-hackers mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/savannah-hackers
[Savannah-hackers] Re: gnudist and savannah projects web sync
Paul Fisher wrote: In order to update files on commit for the web repository, when a file is committed on savannah, a HTTP POST is sent to http://www.gnu.org/savannah/sync. The post transaction must have a Content-Type of application/x-savannah-sync. The body content contains one filename per line. Lines are terminated by LF. Filenames are relative to httpd's root directory and such filenames should not start with a /, or contain references to ... Filenames are limited to printable ASCII characters. For example, if the files home.html and software/year2000.html need to be updated, then a POST might look like: POST /savannah/update HTTP/1.1 Content-Length: 33 Content-Type: application/x-savannah-sync home.html software/year2000.html If the POST is accepted, then a 200 response is returned. Attached is a Perl implementation of the client part. For Savannah hackers/admin : it requires LWP (namely libwww-perl for Debian), and thus adds a dependency on backend/gnu-specific/sv_sync_www.pl. Are you okay with that ? (this package is not installed on subversions.gnu.org) ___ Savannah-hackers mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/savannah-hackers