French version (english below)

Depuis la sortie de la nouvelle version de bioconductor il me faut mettre à jour les bibliothèques R que je maintiens. Ce travail quelque peu répétitif (surtout pour ces bibliothèques où peu de choses changent) peut devenir relativement rapidement enuyeux.

Je me suis donc consacré à la réalisation d'un petit script en python permettant de mettre à jour les différentes branches du CVS de Fedora de façons automatisés.

Ce script travail soit à partir de l'url de la nouvelle source, soit à partir de la source elle même. Il vous permet de mettre à jour une branche ou toutes à la suite.

Ce script doit être adapter pour chaque mainteneur puisqu'il met à jour le changelog (contenant ces informations). Pensez donc à l'éditer et à compléter les informations demandées.

Vous trouverez plus bas le changelog du fichier et le manuel.

Sur ce je vous laisse le tester, n'hésitez pas à me dire ce que vous en pensez/ce qui ne marche pas/ce que vous aimeriez ! ;)

/!\ Ce script ne doit être utiliser que pour des RPMs où les changements d'une version à une autre sont minimes !!!

updateCVS_0.1.py

Amusez vous bien ;)

English version

Since the release of the new version of bioconductor I have worked on the update of the R libraries from bioconductor that I maintain within the Fedora Project. This work can easily become boring since R libraries does not evolve very much on their packaging between the different releases. I therefore worked on a small python script that could handle the update of these libraries onto a CVS repository.

This script can work directly from a url or a tarball. It can update a specific branch of the CVS or several of them.

This script needs some configuration from the maintainer since it updates the changelog which uses these information. Do not forget to give these information.

Here below is the changelog of the file and the manual.

I let you test it and do not hesitate to give me your feedback/bugs/impression/suggestions ;)

/!\ *ONLY* use this script for package for which you do not need to change le spec file a lot between the version !!

updateCVS_0.1.py

Enjoy !

Usage This programm is designed to update a spec files onto a cvs repository
Usage:
From a url
updateCVS -u <url>
updateCVS --url=<url>
From a tarball
updateCVS -s folder/folder/<source>
updateCVS --source=<source>
To define the CVSROOT
updateCVS --cvsroot=<cvsroot>
For R libraries
updateCVS --rmodule
If the RPM contains a prefix (such as "perl-")
updateCVS --prefix=

The source can be in the same directory or in a subdirectory.



Changelog

# Version 1.0 -- 1st June 2008
# * Works from an url
# * Works from a .tar.gz
# * Takes into account the rmodule
# * Takes into accound prefix
# * Works for a specific version or a set of version
#
# * Needs configuration for each packager (see below)