Get local version from NEWS instead of Makefile

This commit is contained in:
Howard Hinnant
2016-09-28 18:08:50 -04:00
parent cedbe3c445
commit 19c83e47ed

4
tz.cpp
View File

@@ -2723,12 +2723,12 @@ static
std::string std::string
get_version(const std::string& path) get_version(const std::string& path)
{ {
std::ifstream infile(path + "Makefile"); std::ifstream infile(path + "NEWS");
std::string version; std::string version;
while (infile) while (infile)
{ {
infile >> version; infile >> version;
if (version == "VERSION=") if (version == "Release")
{ {
infile >> version; infile >> version;
return version; return version;