-
Notifications
You must be signed in to change notification settings - Fork 8
/
full_install.sh
executable file
·54 lines (49 loc) · 1.56 KB
/
full_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "msys" ]]; then
scriptpath=$(realpath $(dirname $0))
elif [[ "$OSTYPE" == "darwin"* ]]; then
scriptpath=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
fi
source "$scriptpath/global_function.sh"
################################################################################
# Help #
################################################################################
function Help()
{
# Display Help
echo ------ BIOP Full Installer -------------
echo "This script executes sequentially:"
echo " - full_install_biop_fiji.sh"
echo " - full_install_biop_qupath.sh"
echo " - full_install_abba.sh"
echo
echo "You need to specify the installation folder as an "
echo "argument of this script. For instance: "
echo ""
echo "Windows:"
echo "./full_install.sh C:/"
echo
echo "Mac:"
echo "./full_install.sh /Applications/"
echo ""
echo "If no path is specified, you will be asked for one."
echo
}
while getopts ":h" option; do
case $option in
h) # display Help
Help
exit;;
esac
done
echo ------ BIOP Full Installer Script -------------
# ------- INSTALLATION PATH VALIDATION and Check system if not already done
if [ $# -eq 0 ]
then
path_validation
else
path_validation $1
fi
source "$scriptpath/full_install_biop_fiji.sh" "$path_install"
source "$scriptpath/full_install_biop_qupath.sh" "$path_install"
source "$scriptpath/full_install_abba.sh" "$path_install"