-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-cli.sh
executable file
·36 lines (30 loc) · 1.03 KB
/
setup-cli.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
#!/bin/bash
echo
echo " INSTALLING PHYLOSTREAM (COMMAND LINE INTERFACE)"
echo " This may take some time as dependencies"
echo " are being downloaded"
echo
# some weird gradle-xtext-blang problem may be caused by deamon trying to
# handle 2 Blang versions, try to avoid this restarting the daemon after a Blang update
./gradlew --stop
./gradlew clean
./gradlew installDist
# Fix problem arising if eclipse is used jointly
mkdir build/xtend/test
mkdir build/blang/test
echo
echo " INSTALLATION WAS SUCCESSFUL"
echo " Type 'phylostream' to try it"
echo
if hash phylostream 2>/dev/null; then
echo
else
echo "NOTE: We are adding a line into ~/.bash_profile to make the phylostream CLI command"
echo " accessible from any directory (as phylostream is not found in PATH right now)."
echo
to_add="$(pwd)/build/install/phylostream/bin/"
existing='$PATH'
line="export PATH=${existing}:${to_add}"
export PATH=$PATH:${to_add}
echo $line >>~/.bash_profile
fi