Umbrello wants to add the svn version to it's version string

Stephen Kelly steveire at gmail.com
Mon Jul 11 13:01:48 CEST 2011


Volker Krause wrote:
>> My idea would be something like that
>> 
>> ECM_GET_VCS_VERSION( [DIRECTORY source_dir] )
>> 
>> Check in the directory for a .git dir -> git checkout -> try git svn info
>> -> try some git log
>> Check in the directory for a .svn dir -> try svn whatever
>> Else: No version
> 
> Sounds good, I hate copy/pasting this code all over the place (I also need
> it in work projects) :)
> 

What do people think about trying to get stuff upstream to cmake before 
putting it in ecm? This vcs macro stuff looks universally useful.




More information about the Kde-buildsystem mailing list