Update of /cvsroot/wpdev/xmlscripts/documentation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7284
Modified Files:
generate_html.py parse.py
Log Message:
New documentation
Index: parse.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/parse.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** parse.py 29 Jun 2004 11:36:25 -0000 1.7
--- parse.py 29 Jun 2004 22:46:13 -0000 1.8
***************
*** 26,29 ****
--- 26,32 ----
else:
return 'Wolfpack ' + VERSION + ' ' + BETA
+
+ def getVersionNumber():
+ return VERSION
# <object id="char">....</object>
Index: generate_html.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/documentation/generate_html.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** generate_html.py 29 Jun 2004 14:47:20 -0000 1.5
--- generate_html.py 29 Jun 2004 22:46:13 -0000 1.6
***************
*** 5,9 ****
import os.path
import sys
! from parse import parsepython, parsecpp, getVersion
from glob import glob
--- 5,9 ----
import os.path
import sys
! from parse import parsepython, parsecpp, getVersion, getVersionNumber
from glob import glob
***************
*** 266,269 ****
--- 266,272 ----
text = template.read()
template.close()
+
+ text = text.replace('{GENERATED}', generated)
+ text = text.replace('{VERSION}', version)
# Compile an overview
***************
*** 523,525 ****
output = open('webroot/index.html', "wt")
output.write(text)
! output.close()
\ No newline at end of file
--- 526,532 ----
output = open('webroot/index.html', "wt")
output.write(text)
! output.close()
!
! output = open('version', 'wt')
! output.write(str(getVersionNumber()))
! output.close()
|