#!/bin/sh
#
# Site.profile.wrapper
# 	wrapper arround modified Site.profile(.main)
#
# p.zumbruch, p.zumbruch@gsi.de

profileDirectory=$(dirname $sourcedSiteProfile)

[ -f "$profileDirectory/Site.profile.pre" ]  && source $profileDirectory/Site.profile.pre $*  && 
[ -f "$profileDirectory/Site.profile.main" ] && source $profileDirectory/Site.profile.main $* &&
[ -f "$profileDirectory/Site.profile.post" ] && source $profileDirectory/Site.profile.post $* || echo call of \"$sourcedSiteProfile\" failed

unset profileDirectory
