Update of /cvsroot/boost/boost/tools/regression/xsl_reports
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15251
Modified Files:
Tag: RC_1_34_0
boostbook_report.py
Log Message:
Creates subdirectories for different tags in ouput directory
Index: boostbook_report.py
===================================================================
RCS file:
/cvsroot/boost/boost/tools/regression/xsl_reports/Attic/boostbook_report.py,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- boostbook_report.py 4 Feb 2007 17:23:57 -0000 1.1.2.1
+++ boostbook_report.py 4 Feb 2007 17:40:23 -0000 1.1.2.2
@@ -4,6 +4,7 @@
import time
import urlparse
import utils
+import shutil
import sys
import zipfile
@@ -76,9 +77,9 @@
if len( boostbook_info ) > 0:
boostbook_info = boostbook_info[0]
utils.log( 'BoostBook found! (%s)' % ( boostbook_info, ) )
- local_copy = os.path.join( options.destination,'BoostBook.zip' )
+ local_copy = os.path.join( options.destination,'BoostBook-%s.zip' %
options.tag )
- if 0:
+ if 1:
if os.path.exists( local_copy ):
utils.log( 'Local copy exists. Checking if it is older than
uploaded one...' )
uploaded_mtime = time.mktime( boostbook_info[1] )
@@ -93,7 +94,7 @@
utils.log( 'Local copy is newer: exiting' )
sys.exit()
- if 0:
+ if 1:
temp = os.path.join( options.destination,'BoostBook.zip' )
result = open( temp, 'wb' )
f.retrbinary( 'RETR %s' % boostbook_info[0], result.write )
@@ -103,7 +104,15 @@
m = time.mktime( boostbook_info[1] )
os.utime( local_copy, ( m, m ) )
- unzip( local_copy, options.destination )
+
+ unpacked_docs_dir = os.path.join( options.destination,
os.path.splitext( os.path.basename( local_copy ) )[0] )
+ utils.log( 'Dri %s ' % unpacked_docs_dir )
+ if os.path.exists( unpacked_docs_dir ):
+ utils.log( 'Cleaning up...' )
+ shutil.rmtree( unpacked_docs_dir )
+ os.makedirs( unpacked_docs_dir )
+
+ unzip( local_copy, unpacked_docs_dir )
def main():
options = accept_args( sys.argv[1:])
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs