> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of [email protected] > Sent: Thursday, October 22, 2009 9:37 PM > To: rsyslog-users > Subject: Re: [rsyslog] version numbers from git repository > > On Thu, 22 Oct 2009, Rainer Gerhards wrote: > > > David, > > > > I like this idea, but I have to admit I have not even the slightest > clue on > > how I should implement it... > > I don't know either, but I do know a couple projects that do implement > it. > > git implements it > > the linux kernel implements it if LOCAL_VERSION_AUTO is enabled in the > config > > if I get a chance I'll try to dig into their makefiles to find out how.
I've looked a bit into the issue. Neither of them use the GNU build system. In essence, it boils down to running "git describe" as part of the build process, generating a file with it. However, I do not know how I may achieve that. It should probably be run during the ./configure stage. Maybe someone can provide some advise ;) > > David Lang > > P.S. I don't know what rsyslog does with the version number, but when I > use checkinstall to create a package from the source it ends up > detecting > the version number many times instead of once > > so instead of > version='5.3.2' > I get > version='5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2 > 5.3.2' I have no real idea what may cause that other than the fact that the version number is probably present more than once in the constant pool because of rsyslog's modular strucutre. Rainer _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

