Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [bug]HasMouse() disappeared from CtrlCore.h
Next Topic: Add empty to STL_VECTOR_COMPATIBILITY
Goto Forum:
  


Current Time: Mon May 20 16:18:57 CEST 2024

Total time taken to generate the page: 0.00591 seconds