mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Get local version from NEWS instead of Makefile
This commit is contained in:
parent
cedbe3c445
commit
19c83e47ed
4
tz.cpp
4
tz.cpp
@ -2723,12 +2723,12 @@ static
|
||||
std::string
|
||||
get_version(const std::string& path)
|
||||
{
|
||||
std::ifstream infile(path + "Makefile");
|
||||
std::ifstream infile(path + "NEWS");
|
||||
std::string version;
|
||||
while (infile)
|
||||
{
|
||||
infile >> version;
|
||||
if (version == "VERSION=")
|
||||
if (version == "Release")
|
||||
{
|
||||
infile >> version;
|
||||
return version;
|
||||
|
Loading…
x
Reference in New Issue
Block a user