#!/bin/bash # Load required DotKit packages source /broad/tools/scripts/useuse reuse -q .python-2.7.1-sqlite3-rtrees # Use the containing path as root dir Root=`dirname $0` # Resolve if it's a symbolic link if [ -h $0 ] ; then # We avoid readlink util here b/c it's not portable POSIX and may be absent Real=`ls -l $0 | grep "\->" | awk '{print $NF}'` Root=`dirname $Real` fi $Root/gdacingestor/runCreateDataFreeze.py "$@" if [[ $? != 0 ]]; then echo "***********************************************" echo "** Data Freeze may not have run properly **" echo "***********************************************" fi exit