X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=docs%2Fscripts%2Fsphinx-make.sh;h=3dca88cd426f695e017be8f8f4820cbbd4660e6a;hb=3ec09e9243dceb78e7548725281b0da8eddf72b1;hp=e95b3eba066192549f5de53cf27edbd24712dda1;hpb=3138d723091234a3534baa8b1bbaad31df6fb8d6;p=vpp.git diff --git a/docs/scripts/sphinx-make.sh b/docs/scripts/sphinx-make.sh index e95b3eba066..3dca88cd426 100755 --- a/docs/scripts/sphinx-make.sh +++ b/docs/scripts/sphinx-make.sh @@ -2,12 +2,17 @@ if [ "$1" == "venv" ] then - python -m pip install --user virtualenv - python -m virtualenv $VENV_DIR + python3 -m pip install --user virtualenv + python3 -m virtualenv $VENV_DIR source $VENV_DIR/bin/activate; - pip install -r $DOCS_DIR/etc/requirements.txt + python3 -m pip install -r $DOCS_DIR/etc/requirements.txt else source $VENV_DIR/bin/activate; + VERSION=`source $WS_ROOT/src/scripts/version` + TM=`TZ=GMT date` + sed -ie "s/**VPP Version:\*\* .*/**VPP Version:** $VERSION/" $DOCS_DIR/about.rst + sed -ie "s/**Built on:\*\* .*/**Built on:** $TM/" $DOCS_DIR/about.rst + rm $DOCS_DIR/about.rste make -C $DOCS_DIR $1 fi