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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user