Compile with svn revision?
#1
Question 
how do you compile with svn revision number.

compiling windows with vs2008 works for release, but not debug.

xbox does not work for me with vs2003. it displays Unknown. i didn't see anything in the build.bat to do this, so i thought it worked the same as windows (automatically)

linux? it appears users were having issues when i check revision number in a script.

osx, haven't tested. the code looks like it has it though.

i use this.
PHP Code:
xbmc_version xbmc.getInfoLabel"System.BuildVersion" )
        
xbmc_rev 0
        xbmc_rev 
intxbmc_version.split" " )[ ].replace"r""" ) ) 

another infolabel is probably unnecessary, but if you had one for System.Revision, it might be nice.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
For linux the rev is only updated at configure time. If the sources aren't from a real svn repo (ie. svn export, tarball, etc) the rev must be explicitly supplied on the configure command line.
Reply
#3
ok on the xbox, looks like vs can't find subwcrev. so xbox will be fixed.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
Quote:
Performing Custom Build Step
'subwcrev' is not recognized as an internal or external command,

i'm getting that in vs2003 for xbox release. i added tortoisesvn's bin folder to the paths.

any advice?

oops forgot to select xbox Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Compile with svn revision?0