#!/bin/bash if [ "$OSG_APP" = "" ]; then echo "You must initialize the osg worker node environment first" exit 1 fi echo running common setup source /cvmfs/oasis.opensciencegrid.org/gluex/packages/common/1.0/setup echo COMMON_OSRELEASE on this platform is $COMMON_OSRELEASE bash $* | while read line; do echo $line if echo $line | grep -q '+=:'; then eval `echo $line | awk -F'+=:' '{print "export",$1"=$"$1":"$2}'` elif echo $line | grep -q '+='; then eval `echo $line | awk -F'+=' '{print "export",$1"="$2"$"$1}'` elif echo $line | grep -q '='; then eval `echo $line | awk -F'+=' '{print "export",$1"="$2}'` fi done