blob: 5a2e026e63891e937ad9acdcd87288c9320423de [file] [log] [blame]
jdenisco3138d722018-09-24 14:59:33 -04001#!/bin/bash
2
3if [ "$1" == "venv" ]
4then
5 python -m pip install --user virtualenv
6 python -m virtualenv $VENV_DIR
7 source $VENV_DIR/bin/activate;
8 pip install -r $DOCS_DIR/etc/requirements.txt
9else
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