[Git][NTPsec/ntpsec][master] waf: clean up unused major, minor, rev version variables

Matt Selsky gitlab at mg.gitlab.com
Sun Mar 4 19:15:23 UTC 2018


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
38b6d871 by Matt Selsky at 2018-03-04T19:11:51Z
waf: clean up unused major, minor, rev version variables

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -96,23 +96,7 @@ def configure(ctx):
     ctx.load('gnu_dirs')
 
     with open("VERSION", "r") as f:
-        version_string = f.read().split(" ")[0].strip()
-        [major, minor, rev] = version_string.split(".")
-        ctx.env.NTPSEC_VERSION_MAJOR = int(major)
-        ctx.env.NTPSEC_VERSION_MINOR = int(minor)
-        ctx.env.NTPSEC_VERSION_REV = int(rev)
-
-    ctx.env.NTPSEC_VERSION = "%s.%s.%s" % (ctx.env.NTPSEC_VERSION_MAJOR,
-                                           ctx.env.NTPSEC_VERSION_MINOR,
-                                           ctx.env.NTPSEC_VERSION_REV)
-# These are not currently used via config.h so remove clutter.
-# Leave as comments in case we want them tomorrow.
-#    ctx.define("NTPSEC_VERSION_MAJOR", ctx.env.NTPSEC_VERSION_MAJOR,
-#               comment="Major version number")
-#    ctx.define("NTPSEC_VERSION_MINOR", ctx.env.NTPSEC_VERSION_MINOR,
-#               comment="Minor version number")
-#    ctx.define("NTPSEC_VERSION_REV", ctx.env.NTPSEC_VERSION_REV,
-#               comment="Revision version number")
+        ctx.env.NTPSEC_VERSION = f.read().split(" ")[0].strip()
 
     ctx.env.OPT_STORE = config["OPT_STORE"]
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/38b6d8713aa60d449136ea07018f5f989bc77c96

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/38b6d8713aa60d449136ea07018f5f989bc77c96
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180304/cd33810a/attachment.html>


More information about the vc mailing list