Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
62444ac6
Commit
62444ac6
authored
Apr 22, 2021
by
Baptiste CHOCOT
Browse files
update install script
parent
45bc9842
Changes
1
Hide whitespace changes
Inline
Side-by-side
diva_evaluation_cli/bin/install.sh
View file @
62444ac6
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment