anchor.diff:  	goto end
   )
   
  +if "%1" == "api-clean" (
  +	del /q /s reference reference_cmd
  +	rmdir reference reference_cmd
  +	goto end
  +	)
  +
  +if "%1" == "api" (
  +    :api
  +	if not exist reference mkdir reference
  +	%PYTHON% tools/build_modref_templates.py dipy reference
  +	if not exist reference_cmd mkdir reference_cmd
  +	%PYTHON% tools/docgen_cmd.py dipy reference_cmd
  +	echo.Build API docs...done.
  +	exit /B
  +	)
  +
  +if "%1" == "examples-clean" (
  +    :examples-clean
  +	cd examples_built && rm -rf *.py *.rst *.png fig
  +	cd ..
  +	exit /B
  +	)
  +
  +if "%1" == "examples-clean-tgz" (
  +    call :examples-clean
  +    call :examples-tgz
  +	%PYTHON% ../tools/pack_examples.py ../dist
  +	exit /B
  +	)
  +
  +if "%1" == "examples-tgz" (
  +    :examples-tgz
  +    call :rstexamples
  +	%PYTHON% ../tools/pack_examples.py ../dist
  +	exit /B
  +	)
  +
  +if "%1" == "gitwash-update" (
  +	%PYTHON% ../tools/gitwash_dumper.py devel dipy --repo-name=dipy ^
  +	                                               --github-user=nipy ^
  +	                                               --project-url=http://nipy.org/dipy ^
  +	                                               --project-ml-url=https://mail.python.org/mailman/listinfo/neuroimaging
  +    )
  +
  +if "%1" == "rstexamples" (
  +    :rstexamples
  +	cd examples_built && %PYTHON% ..\\..\\tools\\make_examples.py
  +	type nul > %1
  +	exit /B
  +	)
  +
   if "%1" == "html" (
  +    :html
  +    echo "build full docs including examples"
  +    call :api
  +    call :rstexamples
  +    call :html-after-examples
  +    exit /B
  +	)
  +
  +if "%1" == "html-after-examples" (
  +    :html-after-examples
   	%SPHINXBUILD% -b html %ALLSPHINXOPTS% _build/html
   	echo.
   	echo.Build finished. The HTML pages are in _build/html.
  -	goto end
  -)
  +	exit /B
  +    )
   
   if "%1" == "dirhtml" (
   	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% _build/dirhtml
  
positive.code: )
  
  if "%1" == "latex" (
  	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% _build/latex
  	echo.
  	echo.Build finished; the LaTeX files are in _build/latex.
  	goto end
  )
  
  if "%1" == "changes" (
  
negative.code: 
  REM Command file for Sphinx documentation
  
  set PYTHON=python
  set SPHINXBUILD=sphinx-build
  set ALLSPHINXOPTS=-d _build/doctrees %SPHINXOPTS% .
  if NOT "%PAPER%" == "" (
  