Author: jpotts
Date: Mon Jan 17 22:28:48 2011
New Revision: 1060115
URL: http://svn.apache.org/viewvc?rev=1060115&view=rev
Log:
Updating doc build script to generate a zip
Modified:
incubator/chemistry/cmislib/trunk/src/doc/ (props changed)
incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py
Propchange: incubator/chemistry/cmislib/trunk/src/doc/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Jan 17 22:28:48 2011
@@ -1 +1,2 @@
build
+docs.zip
Modified: incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py
URL:
http://svn.apache.org/viewvc/incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py?rev=1060115&r1=1060114&r2=1060115&view=diff
==============================================================================
--- incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py (original)
+++ incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py Mon Jan 17
22:28:48 2011
@@ -9,3 +9,7 @@ os.environ['SOURCEDIR']=sys.path[0]
print "Removing build dir: %s" % build_dir
os.system("rm -rf " + build_dir)
os.system("make -e --makefile=" + sys.path[0] + "/Makefile html")
+zip_file = sys.path[0] + "/../docs.zip"
+os.system("rm " + zip_file)
+os.chdir(build_dir)
+os.system("zip -r " + zip_file + " *")