1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06:26:37 +02:00

Made Windows install.js correctly detect the Anope version and made version.cpp correctly generate version.h on Windows

This commit is contained in:
Adam
2010-06-27 20:34:09 -04:00
parent 0eb007a1b3
commit f17c4d4d04
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -26,6 +26,7 @@ int main(int argc, char *argv[])
fstream fd;
fd.clear();
fd.open(argv[1], ios::in);
if (!fd.is_open())
{
@@ -49,6 +50,7 @@ int main(int argc, char *argv[])
fd.close();
fd.clear();
fd.open(argv[2], ios::in);
string version_build = "#define VERSION_BUILD 1";
@@ -84,6 +86,7 @@ int main(int argc, char *argv[])
fd.close();
}
fd.clear();
fd.open(argv[2], ios::out);
if (!fd.is_open())