Dne 21.9.2011 13:32, Stephen Gallagher napsal(a):
On Wed, 2011-09-21 at 08:40 +0200, Jan Zelený wrote:
> I don't quite understand. Could you please elaborate what's wrong with the
> original approach you suggested? That means one configure argument allowing to
> specify the version with a default version string if no such argument is
Well, for one thing what I asked for in the first place was
We can't have multi-line version strings in a configure option; autoconf
can't handle it. (All that happens is that the config.h is broken)
Actually, it can handle it. Although not directly (you have to put \n on
the end of line):
$ ./configure --with-distro-version="-3.fc15\n\
Built: 2011-09-07" --enable-silent-rules
So I was trying to think of an alternative that would serve our
better. Though admittedly, at this point I'm starting to wonder at the
usefulness of this feature at all.
So my new thought was that we should default to displaying a version
that includes build-time information. Then if we wanted to display just
an official version (or a distro-specific build) we could do so by using
a --release argument.
This way at least, we would be able to identify work-in-progress builds
easily as compared to official release builds.