I think the permission in the docs folder are fixed, lets hope this one handles #391

This commit is contained in:
Jorrit Wronski
2015-01-06 11:43:28 +01:00
parent 1a609817d6
commit 7741aa8cd8

View File

@@ -9,40 +9,38 @@ if [ $# != 2 ]; then
exit 1
fi
#
CPVERSION="$1"
BASEDIR="$HOME/buildbot/server-master/public_html"
REPODIR="$HOME/src/CoolPropFull.git"
TMPSDIR="$HOME/src/CoolProp.sources"
DOCFOLDER="sphinx"
DOC4FILES="4.2.5/coolpropv425docs.zip"
DOC4FOLDER="$DOCFOLDER/v4"
# Just a small function print messages
SEPARATOR="----------------------------------"
#
SFUSER="jorritw" # ibell or jorritw
#
function printMessage {
echo " "
echo $SEPARATOR
echo "$1"
return 0
}
#
# Now we use the function defined above
printMessage "Processing the input variables: "
#
# Process the version number and set parameters accordingly
CPVERSION="$1"
if [[ $CPVERSION == +([0-9]).+([0-9]).+([0-9]) ]]; then
echo "CPVERSION = $CPVERSION"
BINFOLDER="release"
SRCFOLDER="$BASEDIR/$BINFOLDER/source"
elif [ "$CPVERSION" == "nightly" ]; then
echo "CPVERSION = $CPVERSION - which is a valid input"
BINFOLDER="binaries"
SRCFOLDER="$BASEDIR/$BINFOLDER/source"
else
echo "CPVERSION = $CPVERSION - not valid!"
exit 1
fi
#
BASEDIR="$HOME/buildbot/server-master/public_html"
REPODIR="$HOME/src/CoolPropFull.git"
TMPSDIR="$HOME/src/CoolProp.sources"
SRCFOLDER="$BASEDIR/$BINFOLDER/source"
DOCFOLDER="sphinx"
DOC4FILES="4.2.5/coolpropv425docs.zip"
DOC4FOLDER="$DOCFOLDER/v4"
#
if [ "$2" == "release" ]; then
DRYRUN=false
else