1*e1fe3e4aSElliott Hughes@ECHO OFF 2*e1fe3e4aSElliott Hughes 3*e1fe3e4aSElliott Hughespushd %~dp0 4*e1fe3e4aSElliott Hughes 5*e1fe3e4aSElliott HughesREM Command file for Sphinx documentation 6*e1fe3e4aSElliott Hughes 7*e1fe3e4aSElliott Hughesif "%SPHINXBUILD%" == "" ( 8*e1fe3e4aSElliott Hughes set SPHINXBUILD=sphinx-build 9*e1fe3e4aSElliott Hughes) 10*e1fe3e4aSElliott Hughesset SOURCEDIR=source 11*e1fe3e4aSElliott Hughesset BUILDDIR=build 12*e1fe3e4aSElliott Hughesset SPHINXPROJ=fontTools 13*e1fe3e4aSElliott Hughes 14*e1fe3e4aSElliott Hughesif "%1" == "" goto help 15*e1fe3e4aSElliott Hughes 16*e1fe3e4aSElliott Hughes%SPHINXBUILD% >NUL 2>NUL 17*e1fe3e4aSElliott Hughesif errorlevel 9009 ( 18*e1fe3e4aSElliott Hughes echo. 19*e1fe3e4aSElliott Hughes echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 20*e1fe3e4aSElliott Hughes echo.installed, then set the SPHINXBUILD environment variable to point 21*e1fe3e4aSElliott Hughes echo.to the full path of the 'sphinx-build' executable. Alternatively you 22*e1fe3e4aSElliott Hughes echo.may add the Sphinx directory to PATH. 23*e1fe3e4aSElliott Hughes echo. 24*e1fe3e4aSElliott Hughes echo.If you don't have Sphinx installed, grab it from 25*e1fe3e4aSElliott Hughes echo.http://sphinx-doc.org/ 26*e1fe3e4aSElliott Hughes exit /b 1 27*e1fe3e4aSElliott Hughes) 28*e1fe3e4aSElliott Hughes 29*e1fe3e4aSElliott Hughes%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 30*e1fe3e4aSElliott Hughesgoto end 31*e1fe3e4aSElliott Hughes 32*e1fe3e4aSElliott Hughes:help 33*e1fe3e4aSElliott Hughes%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 34*e1fe3e4aSElliott Hughes 35*e1fe3e4aSElliott Hughes:end 36*e1fe3e4aSElliott Hughespopd 37