forked from HowardHinnant/date
Get local version from NEWS instead of Makefile
This commit is contained in:
4
tz.cpp
4
tz.cpp
@@ -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;
|
||||||
|
Reference in New Issue
Block a user