[jboss-svn-commits] JBL Code SVN: r18288 - labs/jbossrules/trunk/lib/utility-scripts.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Feb 3 23:45:22 EST 2008
Author: michael.neale at jboss.com
Date: 2008-02-03 23:45:22 -0500 (Sun, 03 Feb 2008)
New Revision: 18288
Modified:
labs/jbossrules/trunk/lib/utility-scripts/docbot-masseur.py
Log:
small corrections
Modified: labs/jbossrules/trunk/lib/utility-scripts/docbot-masseur.py
===================================================================
--- labs/jbossrules/trunk/lib/utility-scripts/docbot-masseur.py 2008-02-04 04:38:57 UTC (rev 18287)
+++ labs/jbossrules/trunk/lib/utility-scripts/docbot-masseur.py 2008-02-04 04:45:22 UTC (rev 18288)
@@ -13,8 +13,10 @@
if not name == ".svn":
flattenDir(root, name, output, sections)
else:
- if (name.endswith(".xml")) :
- top_files.append(name)
+ if name.endswith(".xml") :
+ top_files.append(name)
+ elif name != ".svn":
+ shutil.copyfile(os.path.join(root, name), os.path.join(output, name))
for file in top_files:
contents = open(os.path.join(root, file), "r").read()
for section in sections:
@@ -35,7 +37,7 @@
if name.endswith(".xml"):
docs.append(name)
else:
- if not name == ".svn":
+ if name != ".svn":
images.append(name)
shutil.copyfile(os.path.join(root, dir, name), os.path.join(output, "images", dir + "_" + name))
for doc in docs:
More information about the jboss-svn-commits
mailing list