Page MenuHomec4science

bamc_configuration.sh
No OneTemporary

File Metadata

Created
Wed, Jun 5, 23:23

bamc_configuration.sh

#!/bin/bash
# Read global configuration
DIR_CONF=$SPATH/../conf/
FILE_CONF=$DIR_CONF/$(basename $0).conf
if [ ! -r $FILE_CONF ]; then
echo "Could not read configuration file ($FILE_CONF)"
exit 1;
fi
source $FILE_CONF
# Source local configuration (on request)
function source_local_configuration() {
# Check workspace
assert_workspace "quiet"; if [ $? -eq 1 ]; then return 1; fi
local FILE_LOCAL_CONF=$DIR_WORKSPACE/$DIR_CONFIG/$(basename $FILE_CONF)
if [ -r $FILE_LOCAL_CONF ]; then
source $FILE_LOCAL_CONF
fi
}
# EOF

Event Timeline