1. Erik Southworth
  2. JungleDisk Desktop

Commits

Erik Southworth  committed 613544a

fixed txt2man.py using cached pkg-string

  • Participants
  • Parent commits eb0f40d
  • Branches default

Comments (0)

Files changed (1)

File man/txt2man.py

View file
 #! /usr/bin/env python
 # encoding: utf-8
-# Erik Southworth, 2009 (s6v)
+# Erik Southworth, 2009, 2010 (s6v)
 
 """
 Waf Tool used by wscripts to build manual pages.
 def detect(conf):
     conf.find_txt2man()
     conf.find_gawk()
-    name = Utils.g_module.NAME
-    version = Utils.g_module.VERSION
-    conf.env['PACKAGE_STRING'] = name + ' ' + version
 
 @conftest
 def find_txt2man(conf):
     else:
         section = self.ext[1:]
 
+    name = Utils.g_module.NAME
+    version = Utils.g_module.VERSION
+
     task = self.create_task('txt2man')
-    task.env.SECTION = section
+    task.env['PACKAGE_STRING'] = name + ' ' + version
+    task.env['SECTION'] = section
     task.inputs = [node]
     task.outputs = [node.change_ext(self.ext)]