Skip to content

Instantly share code, notes, and snippets.

@dnanto
Created March 18, 2020 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnanto/3954e81e9facb8896d208874c60db5e3 to your computer and use it in GitHub Desktop.
Save dnanto/3954e81e9facb8896d208874c60db5e3 to your computer and use it in GitHub Desktop.
Manual installation of BEAST2 v2.5.0+ packages...
#!/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