English version

For some time now, I am using a small script to run the make tag and make build in the different branch when I update one of my packages

With that all I do is

  • Update the devel branch (source and spec)
  • run make x86_64
  • Eventually run a make tag build for devel to test it if it buils fine in rawhide
  • Copy the source and spec files to the other branch
  • commit
  • run the script adapted as needed

It works smoothly and save time when I have to update several packages :-)

(Logic and sources below)


French version

J'utilise depuis quelque temps un petit script python tout simple qui me fais make tag, et make build dans les différentes branches et pour plusieur paquets s'il faut.

Grâce à ce script lorsque je fais une mise à jour, je fais:

  • Mise à jour la branche devel (fichier spec et sources)
  • make x86_64 pour vérifier que ça se construit bien
  • Parfois je fais un make tag build dans devel pour vérifier qu'il n'y a pas de problèmes en rawhide
  • Copie des fichiers sources et .spec dans les autres branches du cvs
  • Commit
  • J'adapte puis fais marcher le script

Il marche tranquilement et me fais gagner du temps lorsque j'ai tout une série de paquets à construire.

(Logique et fichier ci-dessous)



#!/usr/bin/python
#-*- coding: utf-8 -*-
 
#
# 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 '
 *** ', 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')

makeBuild.py