Version variable (was Re: [Pkg-jed-commit] r300 ...)

G. Milde g.milde at web.de
Tue May 30 08:37:24 UTC 2006


On 29.05.06, Jörg Sommer wrote:
> G. Milde schrieb am Mon 29. May, 11:43 (+0200):
> > On 26.05.06, Jörg Sommer wrote:
> > > G. Milde schrieb am Fri 26. May, 14:25 (+0200):
... 
> > > > VER = $(shell perl -ne '/([\d.]+)-/; print $$1; exit' < \
> > > > 		      $(dir $(firstword $(MAKEFILE_LIST)))/changelog)
> > > > 
> > > > works in jed-extra/debian/rules, but for some reason not in
> > > > jed/debian/rules.
> > > 
> > > Why we need this? I would suggest to replace it by a string.
> > 
> > It releaves us from the need to update the VERsion in rules and build
> > scripts by taking it from the changelog.
> 
> OK. I've a new idea. Can we give the variable a better name, e.g.
> UPSTREAM_VERSION 

The name and implementation is done by Rafael. I do not object to a
name change if you find this more transparent. It makes the filenames
constructed with it harder to read, however.

> and make it sesitive for environment variables? This way
> I can set the value in my build script and need not the $(dir ...) stuff.

Feel free to add code for this.

Günter



More information about the Pkg-jed-devel mailing list