Revision: 34628
http://sourceforge.net/p/opalvoip/code/34628
Author: rjongbloed
Date: 2016-02-16 10:22:15 +0000 (Tue, 16 Feb 2016)
Log Message:
-----------
Fixed version string generation for various options, including adding one for not having a build number.
Modified Paths:
--------------
ptlib/trunk/src/ptlib/common/osutils.cxx
Modified: ptlib/trunk/src/ptlib/common/osutils.cxx
===================================================================
--- ptlib/trunk/src/ptlib/common/osutils.cxx 2016-02-16 10:07:32 UTC (rev 34627)
+++ ptlib/trunk/src/ptlib/common/osutils.cxx 2016-02-16 10:22:15 UTC (rev 34628)
@@ -2471,17 +2471,24 @@
switch (m_status) {
case PProcess::AlphaCode :
str << "alpha";
+ break;
+
case PProcess::BetaCode :
str << "beta";
+ break;
+
default:
- str << '.';
+ if (m_build != UINT_MAX)
+ str << '.';
}
- str << " (";
+
+ if (m_build != UINT_MAX)
+ str << m_build;
+
if (m_git != NULL && *m_git != '\0')
- str << "git:" << m_git;
+ str << " (git:" << m_git << ')';
else if (m_svn > 0)
- str << "svn:" << m_svn;
- str << ')';
+ str << " (svn:" << m_svn << ')';
}
return str;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|