blob: 3dca88cd426f695e017be8f8f4820cbbd4660e6a [file] [log] [blame]
jdenisco3138d722018-09-24 14:59:33 -04001#!/bin/bash
2
3if [ "$1" == "venv" ]
4then
Paul Vinciguerra0be74512019-02-13 20:59:30 -08005 python3 -m pip install --user virtualenv
6 python3 -m virtualenv $VENV_DIR
jdenisco3138d722018-09-24 14:59:33 -04007 source $VENV_DIR/bin/activate;
Paul Vinciguerra0be74512019-02-13 20:59:30 -08008 python3 -m pip install -r $DOCS_DIR/etc/requirements.txt
jdenisco3138d722018-09-24 14:59:33 -04009else
10 source $VENV_DIR/bin/activate;
jdenisco65ed2d02018-11-06 12:32:33 -050011 VERSION=`source $WS_ROOT/src/scripts/version`
12 TM=`TZ=GMT date`
13 sed -ie "s/**VPP Version:\*\* .*/**VPP Version:** $VERSION/" $DOCS_DIR/about.rst
14 sed -ie "s/**Built on:\*\* .*/**Built on:** $TM/" $DOCS_DIR/about.rst
15 rm $DOCS_DIR/about.rste
jdenisco3138d722018-09-24 14:59:33 -040016 make -C $DOCS_DIR $1
17fi
18
19deactivate