#!/usr/bin/env bash set -uex FNAME=corona.tar.gz WWW_DIR=~/book/biostar-handbook-2/www/books/corona/data # Remove existing directory. rm -rf corona # Make the storage directory mkdir -p corona # Update the blast database (cd corona && bash ~/book/biostar-handbook-2/books/corona/code/download_blast.sh) # Perform the download (cd corona && bash ~/book/biostar-handbook-2/books/corona/code/download_metadata.sh) # Create the distribution file tar czvf $FNAME corona/* # Copy the file to its location cp -f $FNAME $WWW_DIR/$FNAME