"Bo Peng" <[EMAIL PROTECTED]> writes:

| > You are of course aware of svnversion beging a really heavy command
| > (as in time consuming)
| 
| There is no workaround here.... but it is also helpful to put revision
| number in the about box.
| 
| > Also you have to add it to "lyx --version"
| 
| Will do.
| 
| > |  stamp-version: version.C-tmp
| > | +     sed -i 's/lyx_revision = .*/lyx_revision = "'`svnversion -n`'";/' $<
| > |       if cmp -s $< version.C ; then \
| > |               : ;\
| > |       else \
| >
| > I don't think this will work in a srcdir != builddir scenario.
| 
| Do we really need to care about this scenario?

yes.

| I chose a place where
| version.C is checked ... I am more concerned if version.C-tmp will be
| changed and may appear in every 'svn ci'.

version.C-tmp is not in subversion.

| > Also to have the revison number tell the truth you have to rerun
| > svnversion on all rebuilds.
| 
| What do you mean? The revision number will reflect the checked-out
| revision, and that is the one to go to the about box...

4123:4168     mixed revision working copy
4168M         modified working copy
4123S         switched working copy
4123:4168MS   mixed revision, modified, switched working copy

If you don't update the version info, it will lie. F.ex. saying 4123
when 4123:4168MS is the truth.

And if we are going to lie, then we might just as well use $Revision
and add a cronscript that updates the version every night...

-- 
        Lgb

Reply via email to