mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
The generate docsite script now works on both msys/cygwin systems and Unix systems.
This commit is contained in:
parent
ee99d7e9d0
commit
71460d78b1
@ -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 ... "
|
||||
|
Loading…
x
Reference in New Issue
Block a user