Home » U++ Library support » U++ Core » [PROPOSAL] U++ version macro
Re: [PROPOSAL] U++ version macro [message #33152 is a reply to message #33151] |
Mon, 11 July 2011 17:06 |
|
mirek wrote on Mon, 11 July 2011 15:54 | Well, why not, but it would only work for "released" sources, not for svn....
Mirek
|
Sure, I'm aware of the SVN limitation. But SVN is mainly for developers. Skilled developer can surely write a simple script to keep the file up to date Something along the lines of #!/bin/sh
UPPROOT=/path/to/upp
UPPREV=`svn info $UPPROOT | sed -n 's/Revision: \([0-9]*\)/\1/p'`
echo "#ifndef UPP_VERSION
#define UPP_VERSION $UPPREV
#endif" > $UPPROOT/uppsrc/Core/version.h
Also, the update system in theide can take care of this (as it does now with IDE_VERSION), even when using SVN repository.
Honza
|
|
|
Goto Forum:
Current Time: Mon May 20 16:18:57 CEST 2024
Total time taken to generate the page: 0.00591 seconds
|