Created
March 18, 2020 17:27
-
-
Save dnanto/3954e81e9facb8896d208874c60db5e3 to your computer and use it in GitHub Desktop.
Manual installation of BEAST2 v2.5.0+ packages...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ideally, set this outside of this script, like in a profile | |
export BEAST_PACKAGE_PATH="$(pwd)"/.pkg | |
arr=( | |
"https://github.com/BEAST2-Dev/BEASTLabs/releases/download/v1.9.0/BEASTlabs.addon.v1.9.2.zip" | |
"https://github.com/BEAST2-Dev/bModelTest/releases/download/v1.2.0/bModelTest.addon.v1.2.1.zip" | |
"https://github.com/BEAST2-Dev/model-selection/releases/download/v1.5.0/MODEL_SELECTION.addon.v1.5.2.zip" | |
"https://github.com/BEAST2-Dev/nested-sampling/releases/download/v1.1.0/NS.addon.v1.1.0.zip" | |
) | |
for ele in "${arr[@]}"; do | |
name="$(basename "$ele")" | |
root="$BEAST_PACKAGE_PATH/${name/.*/}" | |
dest="$root/$name" | |
curl -LJ0 --create-dirs -o "$dest" "$ele" && unzip -o "$dest" -d "$root" && rm -f "$dest" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment