configure: pull the version number from Bazaar
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Wed Nov 2 00:03:00 GMT 2011
Michael, Thomas, All,
On Thursday 20 October 2011 23:51:32 Yann E. MORIN wrote:
> On Thursday 20 October 2011 05:38:13 Michael Hope wrote:
> > If '.version' ends with bzr then use bzr to automatically add the
> > revision number to the version string.
> The official repository is using Mercurial, and only that will be
> supported upstream.
During the Prague events last week, a suggestion was made (by Thomas)
regarding this issue:
- ./configure checks if a script is present
- ./configure runs the script
- the script is expected to output a single line, using whatever
is deemed fit to compute a VCS version
- ./configure appends the line above to the version it internally
computed
That way, it is easy to add such a script to the different VCSes used by
the different users, without the need to always port the change to the
./configure script, and without the change always trying to escape up
to upstream. ;-)
What do you think? Would that be OK with you? With others?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list