diff --git a/install/from-scratch.sh b/install/from-scratch.sh index 2331df090b4abe69dc67bad1bf3e2df3b814a98e..112cbd9d7b6de85567914a30698a049d34007d3a 100755 --- a/install/from-scratch.sh +++ b/install/from-scratch.sh @@ -3,9 +3,10 @@ set -e -if [ "${#}" != 3 ]; then - echo "usage: `basename $0` <basedir> <name> <python-version> <bob-devel>" - echo "example: `basename $0` /opt/conda bob-devel-py35 3.5 2017.06.06" +if [ "${#}" != 4 ]; then + p=`basename $0` + echo "usage: ${p} <basedir> <name> <python-version> <bob-devel-version>" + echo "example: ${p} /opt/conda bob-devel-py35 3.5 2017.06.20" exit 1 fi @@ -25,6 +26,6 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then fi echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..." -${CONDA} create --yes --name=${NAME} --override-channels --channel=http://www.idiap.ch/software/bob/conda --channel=defaults python=${PYTHON_VERSION} bob-devel=${BOB_DEVEL} +${CONDA} create --yes --name=${NAME} --override-channels --channel=http://www.idiap.ch/software/bob/conda --channel=defaults python=${PYTHON_VERSION} bob-devel=${BOB_DEVEL_VERSION} echo "[>>] Bye!" exit 0 diff --git a/install/install-ci.sh b/install/install-ci.sh index 2c169be78c4b5dd2b0c75ec0a767d22c7eb92cda..d3640b961d7f4a9855207bb9d6db5a10041c31d4 100755 --- a/install/install-ci.sh +++ b/install/install-ci.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash # Sat 28 Jan 09:16:48 2017 CET -if [ "${#}" != 1 ]; then +if [ "${#}" != 2 ]; then echo "usage: `basename $0` <prefix> <bob-devel-version>" - echo "example: `basename $0` /opt/conda 2017.06.06" + echo "example: `basename $0` /opt/conda 2017.06.20" exit 1 fi