forked from sanjay-boddu/linuxbrew-automation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path02-additional-libraries.sh
56 lines (31 loc) · 1.2 KB
/
02-additional-libraries.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
55
56
#!/bin/bash
##### Functions start
function print_this {
printf '%.0s*' {1..125}; echo
printf "%s" "$@"; echo
printf '%.0s*' {1..125}; echo
}
##### Functions end
# Check if 01-base.sh script is run successfully
if [ ! -f "$ENSEMBL_LINUXBREW_DIR/.base_libs_installed" ]; then
print_this "Looks like there was a problem installting base libraries. Install base libraries before running this script. Aborting!"
return
fi
if [ -z "$IS_A_DOCKER_INSTALL" ]; then
read -p "Libraries will be installed into $ENSEMBL_LINUXBREW_DIR. Continue?: " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
print_this "Aborting installation!"
return
fi
fi
print_this "Installing Ensembl base libraries for gui"
time brew install ensembl/cask/web-gui
print_this "Installing Ensembl base libraries for bioinfo"
time brew install ensembl/cask/web-bifo
print_this "Installing Ensembl base libraries for internal purposes"
time brew install ensembl/cask/web-internal
brew link --force [email protected]
# Create a file as a check for installing Perl modules and Python packages.
# Should we create an environment variable instead of this?
touch $ENSEMBL_LINUXBREW_DIR/.additional_libs_installed