#!/bin/bash -e

# build-mgc
#
# Script that runs the MGC download and processing.  This is run by cron
# weekly.

# errors terminate with message
set -e
trap "echo Error: mgc-build failed on `hostname` >&2;exit 1" ERR

# initialize
gbRoot=/cluster/data/genbank
cd $gbRoot
. $gbRoot/lib/gbCommon.sh

# download and process
nice mgcDownloadStep

echo "`hostname` MGC build completed"
