From 19c83e47ed411a45e0b5a45d772c47c6ee23ac3f Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 28 Sep 2016 18:08:50 -0400 Subject: [PATCH] Get local version from NEWS instead of Makefile --- tz.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tz.cpp b/tz.cpp index 64ed6d2..50220bd 100644 --- a/tz.cpp +++ b/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;