chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpo...@apache.org
Subject svn commit: r1043282 - in /incubator/chemistry/cmislib/trunk/src/doc/src: Makefile run-sphinx.py
Date Wed, 08 Dec 2010 02:21:49 GMT
Author: jpotts
Date: Wed Dec  8 02:21:48 2010
New Revision: 1043282

URL: http://svn.apache.org/viewvc?rev=1043282&view=rev
Log:
Adjusting run-sphinx so that it can be invoked from anywhere in the file system

Modified:
    incubator/chemistry/cmislib/trunk/src/doc/src/Makefile
    incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py

Modified: incubator/chemistry/cmislib/trunk/src/doc/src/Makefile
URL: http://svn.apache.org/viewvc/incubator/chemistry/cmislib/trunk/src/doc/src/Makefile?rev=1043282&r1=1043281&r2=1043282&view=diff
==============================================================================
--- incubator/chemistry/cmislib/trunk/src/doc/src/Makefile (original)
+++ incubator/chemistry/cmislib/trunk/src/doc/src/Makefile Wed Dec  8 02:21:48 2010
@@ -21,11 +21,12 @@ SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build2.6
 PAPER         =
 BUILDDIR      = ../build
+SOURCEDIR     = .
 
 # Internal variables.
 PAPEROPT_a4     = -D latex_paper_size=a4
 PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS   = -d $(BUILDDIR)/.doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+ALLSPHINXOPTS   = -d $(BUILDDIR)/.doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)

 
 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
 

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=1043282&r1=1043281&r2=1043282&view=diff
==============================================================================
--- incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py (original)
+++ incubator/chemistry/cmislib/trunk/src/doc/src/run-sphinx.py Wed Dec  8 02:21:48 2010
@@ -1,3 +1,7 @@
 #!/usr/bin/python
 import os
-os.system("make html")
+import sys
+print sys.path[0]
+os.environ['BUILDDIR']=sys.path[0] + "/../build"
+os.environ['SOURCEDIR']=sys.path[0]
+os.system("make -e --makefile=" + sys.path[0] + "/Makefile html")



Mime
View raw message