aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/VersionInfo.cs
diff options
context:
space:
mode:
authorlbsa712009-05-26 16:18:41 +0000
committerlbsa712009-05-26 16:18:41 +0000
commitb773a3a02f35b5d15e6b8f9d2163439e1258d2d4 (patch)
tree799359349b21766be48e97d9f6acf0d085965aeb /OpenSim/Framework/Servers/VersionInfo.cs
parent* Introduced GetVersionString so we can harness the whole thing. (diff)
downloadopensim-SC-b773a3a02f35b5d15e6b8f9d2163439e1258d2d4.zip
opensim-SC-b773a3a02f35b5d15e6b8f9d2163439e1258d2d4.tar.gz
opensim-SC-b773a3a02f35b5d15e6b8f9d2163439e1258d2d4.tar.bz2
opensim-SC-b773a3a02f35b5d15e6b8f9d2163439e1258d2d4.tar.xz
* We have strand flavours.
* The version string is now reported as "OpenSim 0.6.5 (Dev)" * This has to be administrated manually.
Diffstat (limited to 'OpenSim/Framework/Servers/VersionInfo.cs')
-rw-r--r--OpenSim/Framework/Servers/VersionInfo.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Framework/Servers/VersionInfo.cs b/OpenSim/Framework/Servers/VersionInfo.cs
index 56f9148..cdf6909 100644
--- a/OpenSim/Framework/Servers/VersionInfo.cs
+++ b/OpenSim/Framework/Servers/VersionInfo.cs
@@ -29,24 +29,27 @@ namespace OpenSim
29{ 29{
30 public class VersionInfo 30 public class VersionInfo
31 { 31 {
32 private enum Flavour 32 private const string VERSION_NUMBER = "0.6.5";
33 private const Flavour VERSION_FLAVOUR = Flavour.Dev;
34
35 public enum Flavour
33 { 36 {
34 Unknown, 37 Unknown,
35 Dev, 38 Dev,
36 RC1, 39 RC1,
37 RC2, 40 RC2,
38 Release 41 Release,
42 Post_Fixes
39 } 43 }
40 private const string m_versionNumber = "0.6.5";
41 44
42 public static string Version 45 public static string Version
43 { 46 {
44 get { return GetVersionString(m_versionNumber); } 47 get { return GetVersionString(VERSION_NUMBER, VERSION_FLAVOUR); }
45 } 48 }
46 49
47 public static string GetVersionString(string versionNumber) 50 public static string GetVersionString(string versionNumber, Flavour flavour)
48 { 51 {
49 string versionString = "OpenSimulator Server" + versionNumber; 52 string versionString = "OpenSim " + versionNumber + " (" + flavour + ")";
50 return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); 53 return versionString.PadRight(VERSIONINFO_VERSION_LENGTH);
51 } 54 }
52 55