refactor: rename gitCommitFileName to manualVersionFileName since bin/.version doesn't necessary have to be a git hash

bulletsim
Justin Clark-Casey (justincc) 2011-07-01 21:47:30 +01:00
parent e41093635a
commit 759e855566
1 changed files with 4 additions and 5 deletions

View File

@ -460,21 +460,20 @@ namespace OpenSim.Framework.Servers
// elsewhere as well
string svnRevisionFileName = "svn_revision";
string svnFileName = ".svn/entries";
string gitCommitFileName = ".version";
string manualVersionFileName = ".version";
string inputLine;
int strcmp;
if (File.Exists(gitCommitFileName))
if (File.Exists(manualVersionFileName))
{
StreamReader CommitFile = File.OpenText(gitCommitFileName);
StreamReader CommitFile = File.OpenText(manualVersionFileName);
buildVersion = CommitFile.ReadLine();
CommitFile.Close();
m_version += buildVersion ?? "";
}
// Remove the else logic when subversion mirror is no longer used
else
{
// Remove the else logic when subversion mirror is no longer used
if (File.Exists(svnRevisionFileName))
{
StreamReader RevisionFile = File.OpenText(svnRevisionFileName);