#!/usr/bin/python #-*- coding: utf-8 -*- #***************************************************** # Copyright (c) 2009 -- Pierre-Yves Chibon # # Distributed under License GPLv3 or later # You can find a copy of this license on the website # http://www.gnu.org/licenses/gpl.html # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for moredetails. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. # #***************************************************** # # For each package in packagelist # do # cvs co package # cd package # for each branch in branchlist # do # cd version # make tag # BUILD_FLAGS="--nowait" make build # import os cvsfolder = '/home/pingou/CVS' packagelist = ['R-hgu95av2probe', 'guake', 'R-pls'] branchlist = ['devel', 'F-11', 'F-10'] #branchlist = ['F-11', 'F-10'] for package in packagelist: os.chdir(cvsfolder) print '*'*50 print '%s/%s' %(packagelist.index(package) + 1,len(packagelist)), ' '*10, package print '*'*50 print 'cvs co %s' %package os.system('cvs co %s' %package) os.chdir('%s/%s' %(cvsfolder, package)) for branch in branchlist: print '\n *** ', branch os.chdir('%s/%s/%s' %(cvsfolder, package, branch)) print 'make tag' os.system('make tag') print 'BUILD_FLAGS="--nowait" make build' os.system('BUILD_FLAGS="--nowait" make build')