mailr17352 - /trunk/scons/manuals.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 28, 2012 - 14:51:
Author: bugman
Date: Tue Aug 28 14:51:57 2012
New Revision: 17352

URL: http://svn.gna.org/viewcvs/relax?rev=17352&view=rev
Log:
The user manual now specifies the repository revision if a non-tagged version 
is built.

This enables easier tracking and editing of the manual.


Modified:
    trunk/scons/manuals.py

Modified: trunk/scons/manuals.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/scons/manuals.py?rev=17352&r1=17351&r2=17352&view=diff
==============================================================================
--- trunk/scons/manuals.py (original)
+++ trunk/scons/manuals.py Tue Aug 28 14:51:57 2012
@@ -30,7 +30,7 @@
 
 # relax module imports.
 from status import Status; status = Status()
-from version import version
+import version
 
 
 def clean_manual_files(target, source, env):
@@ -485,9 +485,14 @@
     print("# Creating the LaTeX relax version number file #")
     print("################################################")
 
+    # Add the repository revision if not a normal release.
+    text = version.version
+    if text == 'repository checkout':
+        text += ' r' + version.revision()
+
     # Place the program version number into a LaTeX file.
     file = open(env['LATEX_DIR'] + sep + 'relax_version.tex', 'w')
-    file.write("Version " + version + '\n')
+    file.write("Version " + text + '\n')
     file.close()
 
     # Final printout.




Related Messages


Powered by MHonArc, Updated Tue Aug 28 15:00:01 2012