The generate docsite script now works on both msys/cygwin systems and Unix systems.

This commit is contained in:
Clinton Alexander 2017-01-06 16:16:10 +00:00
parent ee99d7e9d0
commit 71460d78b1

View File

@ -18,9 +18,22 @@ fi
if [ ! -d "virtualenv" ]
then
virtualenv -p python2.7 virtualenv
# Check if python2.7 is installed explicitly otherwise fall back to the default python
if type "python2.7" > /dev/null; then
virtualenv -p python2.7 virtualenv
else
virtualenv virtualenv
fi
fi
. virtualenv/bin/activate
if [ -d "virtualenv/bin" ]
then
# it's a Unix system
. virtualenv/bin/activate
else
. virtualenv/Scripts/activate
fi
if [ ! -d "virtualenv/lib/python2.7/site-packages/sphinx" ]
then
echo "Installing pip dependencies ... "