Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65749819
bamc_configuration.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 5, 23:23
Size
532 B
Mime Type
text/x-shellscript
Expires
Fri, Jun 7, 23:23 (2 d)
Engine
blob
Format
Raw Data
Handle
18121406
Attached To
R1066 amc-cape
bamc_configuration.sh
View Options
#!/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
Log In to Comment