summaryrefslogtreecommitdiff
path: root/install.js
diff options
context:
space:
mode:
authorAdam <Adam@Anope.org>2010-06-25 20:00:21 -0400
committerAdam <Adam@Anope.org>2010-06-25 20:00:21 -0400
commit03fbc7d281f5039a97c851970dea3cd8cfaefd64 (patch)
treec527046a41b97751b1a52ba7046e36337f0d0373 /install.js
parentcbcead4e89b3dc0dfb236fff9cb3e62b1b0707c0 (diff)
Changed the versioning system to use git
Diffstat (limited to 'install.js')
-rw-r--r--install.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/install.js b/install.js
index 9215a10bd..c8d918f78 100644
--- a/install.js
+++ b/install.js
@@ -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;
}