Revision dc594d89f94bc1f104b0f3a003469c15cb51ebf1 authored by apregier on 28 July 2014, 19:04:42 UTC, committed by apregier on 28 July 2014, 19:06:18 UTC
This reverts commit 8223e0899bae5d572647e16c71d7f703f66bd2fc.
1 parent 5c3fcb4
Raw File
test-env.sh
set -o nounset

SNAPSHOT_LIB="/gsc/scripts/opt/genome/current/user/lib/perl"
SNAPSHOT_BIN="/gsc/scripts/opt/genome/current/user/bin"

# remove /gsc/scripts/opt/genome/current/user/*
PERL5LIB="$(echo $PERL5LIB | tr : "\n" | grep -v "$SNAPSHOT_LIB" | tr '\n' : | sed 's/:$//')"
PATH="$(echo $PATH | tr : "\n" | grep -v "$SNAPSHOT_BIN" | tr '\n' : | sed 's/:$//')"

PERL5LIB=$WORKSPACE/ur/lib:$PERL5LIB
PATH=$WORKSPACE/ur/bin:$PATH

PERL5LIB=$WORKSPACE/workflow/lib:$PERL5LIB
PATH=$WORKSPACE/workflow/bin:$PATH

PERL5LIB=$WORKSPACE/lib/perl:$PERL5LIB
PATH=$WORKSPACE/bin:$PATH

export PERL5LIB
export PATH

set +o nounset

for MODULE in UR Workflow Genome; do
    if wtf $MODULE | grep -q "$SNAPSHOT_LIB"; then echo "$MODULE found in $SNAPSHOT_LIB! Aborting!" && exit 1; fi
done

for BIN in ur workflow genome; do
    if which $BIN | grep -q "$SNAPSHOT_BIN"; then echo "$BIN found in $SNAPSHOT_BIN! Aborting!" && exit 1; fi
done
back to top