OSDN Git Service

sconstruct: Oops. Use version variable when generating build.t2tConf, not versionInfo...
authorJames Teh <jamie@jantrid.net>
Tue, 14 Jun 2011 03:35:39 +0000 (13:35 +1000)
committerJames Teh <jamie@jantrid.net>
Tue, 14 Jun 2011 03:35:39 +0000 (13:35 +1000)
This means that the documentation correctly uses the version from the command line if it is overridden.

sconstruct

index 97f89d4..07a6ed4 100755 (executable)
@@ -128,7 +128,7 @@ for lang in os.listdir(userDocsDir.path):
 \r
 t2tBuildConf = env.Textfile(userDocsDir.File("build.t2tConf"), [\r
        # We need to do this one as PostProc so it gets converted for the title.\r
-       r"%!PostProc: NVDA_VERSION {}".format(versionInfo.version),\r
+       r"%!PostProc: NVDA_VERSION {}".format(version),\r
        r"%!PreProc: NVDA_URL {}".format(versionInfo.url),\r
        r"%!PreProc: NVDA_COPYRIGHT_YEARS {}".format(versionInfo.copyrightYears),\r
 ])\r