[Pkg-ltsp-devel] generating debian/control

vagrant at freegeek.org vagrant at freegeek.org
Wed May 30 10:55:46 UTC 2007


On Tue, May 29, 2007 at 05:42:32PM -0300, Otavio Salvador wrote:
> vagrant at freegeek.org writes:
> > thoughts on how to implement?
> 
> At parted we have a packaging-files target on rules and then when
> we're preparing the upload we do:
> 
> $: debian/rules packaging-files
> 
> This rule might use lsb-release to detect if we were running at Debian
> or Ubuntu and use sed to replace things on a common control.in file.

ok, implemented something like this in a bzr branch:

 http://llama.freegeek.org/~vagrant/bzr/ltsp/features/vagrant-ltsp-controlgen

wasn't too difficult...

essentially wrote a script which sources debian/control.$VENDOR, and
tweaks debian/control.in with some sed scripts to replace the various
values. seems to work for me. comments, code, ideas to improve welcome,
as always :)

live well,
  vagrant



More information about the Pkg-ltsp-devel mailing list