mirror of
https://github.com/corda/corda.git
synced 2025-06-11 20:01:46 +00:00
The generate docsite script now works on both msys/cygwin systems and Unix systems.
This commit is contained in:
@ -18,9 +18,22 @@ fi
|
|||||||
|
|
||||||
if [ ! -d "virtualenv" ]
|
if [ ! -d "virtualenv" ]
|
||||||
then
|
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
|
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" ]
|
if [ ! -d "virtualenv/lib/python2.7/site-packages/sphinx" ]
|
||||||
then
|
then
|
||||||
echo "Installing pip dependencies ... "
|
echo "Installing pip dependencies ... "
|
||||||
|
Reference in New Issue
Block a user