Commit 62444ac6 authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

update install script

parent 45bc9842
......@@ -4,6 +4,8 @@
# Command Line Interface actev: installation script #
#####################################################
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
usage() {
echo "usage: install.sh [-h | --help] [--cli-env | -c CLI_ENV_PATH] [--scorer-env | -s SCORER_ENV_PATH] [--all]"
}
......@@ -51,7 +53,7 @@ while [ "$1" != "" ]; do
shift
done
cd "$(dirname "$0")/../.."
cd "$DIR/../.."
if [[ -f "environment.yml" ]]; then
# check conda existence
conda -h &> /dev/null
......@@ -75,12 +77,12 @@ if [[ -f "environment.yml" ]]; then
# Exporting scorer env directory to the CLI shell env
cd "$(dirname "$0")"
echo '' >> ./private_src/implementation/utils/actev_cli_environment.env
echo "SCORER_CONDA_ENV=$scorer_env" >> ./private_src/implementation/utils/actev_cli_environment.env
echo '' >> $DIR/private_src/implementation/utils/actev_cli_environment.env
echo "SCORER_CONDA_ENV=$scorer_env" >> $DIR/private_src/implementation/utils/actev_cli_environment.env
# install it
if [[ "$all" -eq 1 ]]; then
echo "Installation in progress: ActEV_Scorer"
bash ./private_src/implementation/validate_execution/install.sh $scorer_env
bash $DIR/private_src/implementation/validate_execution/install.sh $scorer_env
echo "Installation done: ActEV_Scorer"
fi
else
......@@ -88,7 +90,7 @@ else
cd "$(dirname "$0")"
if [[ "$all" -eq 1 ]]; then
echo "Installation in progress: ActEV_Scorer"
bash ./private_src/implementation/validate_execution/install.sh
bash $DIR/private_src/implementation/validate_execution/install.sh
echo "Installation done: ActEV_Scorer"
fi
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment