Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
classify: crash on classify filter pcap del command
[vpp.git]
/
docs
/
scripts
/
sphinx-make.sh
diff --git
a/docs/scripts/sphinx-make.sh
b/docs/scripts/sphinx-make.sh
index
61356bb
..
b00fb22
100755
(executable)
--- a/
docs/scripts/sphinx-make.sh
+++ b/
docs/scripts/sphinx-make.sh
@@
-11,6
+11,7
@@
fi
# Get the OS
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
# Get the OS
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
+OS_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
if [ "$1" == "venv" ]
then
if [ "$1" == "venv" ]
then
@@
-21,7
+22,12
@@
then
fi
if [ "$OS_ID" == "centos" ]
then
fi
if [ "$OS_ID" == "centos" ]
then
- sudo yum install $CONFIRM python3-venv
+ if [ "$OS_VERSION" == "8" ]
+ then
+ sudo yum install $CONFIRM python3-virtualenv
+ else
+ sudo yum install $CONFIRM python3-venv
+ fi
fi
# Install the virtual environment
fi
# Install the virtual environment