Added the v4 docs to the homepage, closes #349

This commit is contained in:
Jorrit Wronski
2014-12-31 15:43:22 +01:00
parent f781dcad02
commit 9d76266f6e

View File

@@ -16,6 +16,8 @@ TMPSDIR="$HOME/src/CoolProp.sources"
BINFOLDER="binaries"
DOCFOLDER="sphinx"
SRCFOLDER="$BASEDIR/$BINFOLDER/source"
DOC4FILES="4.2.5/coolpropv425docs.zip"
DOC4FOLDER="$DOCFOLDER/v4"
SEPARATOR="----------------------------------"
#
SFUSER="jorritw" # ibell or jorritw
@@ -87,7 +89,7 @@ else
RSYNC_OPTS="-a --no-perms -z --stats"
printMessage "Zipping up the docs and moving them into the $BINFOLDER folder for staging"
rm -f documentation.zip
zip -rq documentation.zip $DOCFOLDER/*
zip -rq documentation.zip $DOCFOLDER/* -x */$(basename $DOC4FOLDER)/*
mkdir -p "$BINFOLDER/docs"
cp documentation.zip "$BINFOLDER/docs"
echo "Uploading the python binaries to pypi"
@@ -96,6 +98,11 @@ else
RSYNC_DRY_RUN=
fi
#
printMessage "Getting the latest v4 docs from SourceForge"
rsync $RSYNC_DRY_RUN $RSYNC_OPTS "frs.sf.net-$SFUSER:/home/frs/project/coolprop/CoolProp/$DOC4FILES" "$(basename $DOC4FILES)"
mkdir -p "$DOC4FOLDER"
unzip -qo "$(basename $DOC4FILES)" -d "$DOC4FOLDER"
#
printMessage "Copying the binaries to SourceForge"
rsync $RSYNC_DRY_RUN $RSYNC_OPTS "$BINFOLDER/" frs.sf.net-$SFUSER:/home/frs/project/coolprop/CoolProp/$CPVERSION
if [ ${CPVERSION:0:7} != "nightly" ]; then