To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 451c8817 authored by Christoph Goering's avatar Christoph Goering
Browse files

Checks if Graphviz is in PATH

parent a76672a8
......@@ -53,7 +53,9 @@ coverage:
pages:
stage: documentation
script:
- mkdir public
- apt-get update
- apt-get install -y graphviz
# - mkdir public
- cd docs ; make html
# - mv _build/html/ ../public/
dependencies:
......
......@@ -14,6 +14,26 @@ help:
.PHONY: help Makefile
# detect what shell is used
ifeq ($(findstring cmd.exe,$(SHELL)),cmd.exe)
$(info "shell Windows cmd.exe")
DEVNUL := NUL
WHICH := where
else
$(info "shell Bash")
DEVNUL := /dev/null
WHICH := which
endif
# detect platform independently if gcc is installed
ifeq ($(shell ${WHICH} dot 2>${DEVNUL}),)
$(error "dot is not in your system PATH. Please install it and put it into your PATH")
$(error "http://graphviz.org")
else
$(info "dot (graphviz) found")
endif
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
......
......@@ -9,6 +9,7 @@ if "%SPHINXBUILD%" == "" (
)
set SOURCEDIR=.
set BUILDDIR=_build
set DOT=dot -V
if "%1" == "" goto help
......@@ -25,6 +26,16 @@ if errorlevel 9009 (
exit /b 1
)
%DOT% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'dot' command was not found. Make sure you have Graphviz installed.
echo.
echo.If you don't have Graphviz installed, grab it from
echo.http://graphviz.org, install it and put it in the PATH.
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment