1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 14:23:13 +02:00

Changed the versioning system to use git

This commit is contained in:
Adam
2010-06-25 20:00:21 -04:00
parent cbcead4e89
commit 03fbc7d281
167 changed files with 2981 additions and 542 deletions
+4 -9
View File
@@ -13,7 +13,7 @@
//
var anopeVersion = "Unknown";
var vMaj, vMin, vPat, vBuild, vExtra;
var vMaj, vMin, vPat, vExtra;
var installerResponses = new Array();
@@ -258,13 +258,13 @@ else
// Functions
function FindAnopeVersion() {
if (!fso.FileExists(ScriptPath + 'version.log'))
if (!fso.FileExists(ScriptPath + 'src\\version'))
{
anopeVersion = 'Unknown';
return;
}
var versionLog = fso.OpenTextFile(ScriptPath + 'version.log');
var versionLog = fso.OpenTextFile(ScriptPath + 'src\\version');
while (!versionLog.atEndOfStream)
{
var versionLine = versionLog.readline();
@@ -292,14 +292,9 @@ function FindAnopeVersion() {
vExtra = versionLine.replace('VERSION_EXTRA=', '');
continue;
}
if (versionLine.match(/VERSION_BUILD=/g))
{
vBuild = versionLine.replace('VERSION_BUILD=', '');
continue;
}
}
versionLog.close();
anopeVersion = vMaj + '.' + vMin + '.' + vPat + '.' + vBuild + vExtra;
anopeVersion = vMaj + '.' + vMin + '.' + vPat + vExtra;
return;
}