[ntpsec commit] Document some functions.

Amar Takhar amar at ntpsec.org
Mon Sep 28 23:06:04 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    01233923e3514fa9c49fa98e44a3f49af26d90a5
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=01233923e3514fa9c49fa98e44a3f49af26d90a5

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Mon Sep 28 19:05:50 2015 -0400

Document some functions.

---

 pylib/waf.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pylib/waf.py b/pylib/waf.py
index 954c8d1..3c63ca2 100644
--- a/pylib/waf.py
+++ b/pylib/waf.py
@@ -29,6 +29,8 @@ def insert_libiscpthreaddir(self):
 	srcnode = self.bld.srcnode.abspath()
 	self.includes += ["%s/lib/isc/pthreads/include/" % srcnode]
 
+
+# Create version.c
 class version(Task):
 	vars = ['NTPS_VERSION_STRING', 'TARGET']
 	def run(self):
@@ -37,6 +39,8 @@ const char *Version = "%s " __DATE__ " " __TIME__;
 const char *VVersion = "CFLAGS=%s LDFLAGS=%s";
 """ % (self.env.NTPS_VERSION_STRING, "Need-CFLAGS", "Need-LDFLAGS"))
 
+# Use in features= to generate a version.c for that target.
+# This uses the target name for the version string.
 @before_method('process_source')
 @feature('ntp_version')
 def ntp_version(self):



More information about the vc mailing list