diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 62177a6..dac784e 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -230,13 +230,24 @@ namespace OpenSim.Framework.Servers | |||
230 | string buildVersion = string.Empty; | 230 | string buildVersion = string.Empty; |
231 | 231 | ||
232 | // Add subversion revision information if available | 232 | // Add subversion revision information if available |
233 | // Try file "svn_revision" in the current directory first, then the .svn info. | ||
234 | // This allows to make the revision available in simulators not running from the source tree. | ||
233 | // FIXME: Making an assumption about the directory we're currently in - we do this all over the place | 235 | // FIXME: Making an assumption about the directory we're currently in - we do this all over the place |
234 | // elsewhere as well | 236 | // elsewhere as well |
237 | string svnRevisionFileName = "svn_revision"; | ||
235 | string svnFileName = "../.svn/entries"; | 238 | string svnFileName = "../.svn/entries"; |
236 | string inputLine; | 239 | string inputLine; |
237 | int strcmp; | 240 | int strcmp; |
238 | 241 | ||
239 | if (File.Exists(svnFileName)) | 242 | if (File.Exists(svnRevisionFileName)) |
243 | { | ||
244 | StreamReader RevisionFile = File.OpenText(svnRevisionFileName); | ||
245 | buildVersion = RevisionFile.ReadLine(); | ||
246 | buildVersion.Trim(); | ||
247 | RevisionFile.Close(); | ||
248 | } | ||
249 | |||
250 | if (string.IsNullOrEmpty(buildVersion) && File.Exists(svnFileName)) | ||
240 | { | 251 | { |
241 | StreamReader EntriesFile = File.OpenText(svnFileName); | 252 | StreamReader EntriesFile = File.OpenText(svnFileName); |
242 | inputLine = EntriesFile.ReadLine(); | 253 | inputLine = EntriesFile.ReadLine(); |