|
|
|
|
# --------------------------------------------------------------------
|
|
# Name: sde_config_dir
|
|
#
|
|
# Arguments:
|
|
# Name name for the config.
|
|
#
|
|
# Return value:
|
|
# The location where the config files are stored for the
|
|
# given config name.
|
|
# --------------------------------------------------------------------
|
|
sde_config_dir() {
|
|
local name=$1
|
|
|
|
# Verify this function was properly called.
|
|
# TODO: How should errors be handled/returned?
|
|
|
|
echo $SDEROOT/config/$name
|
|
}
|
|
|
|
# --------------------------------------------------------------------
|
|
# Name: sde_package_dir
|
|
#
|
|
# Arguments:
|
|
# package fully qualified package name.
|
|
#
|
|
# Return value:
|
|
# The location where the package files are stored for the
|
|
# given package.
|
|
# --------------------------------------------------------------------
|
|
sde_package_dir() {
|
|
local package=$1
|
|
|
|
# Verify this function was properly called.
|
|
# TODO: How should errors be handled/returned?
|
|
|
|
echo $SDEROOT/package/${package//./\/}
|
|
}
|
|
|
|
# --------------------------------------------------------------------
|
|
# Name: sde_target_dir
|
|
#
|
|
# Arguments:
|
|
# Name name for the target.
|
|
#
|
|
# Return value:
|
|
# The location where the target files are stored for the
|
|
# given target name.
|
|
# --------------------------------------------------------------------
|
|
sde_target_dir() {
|
|
local target=$1
|
|
|
|
# Verify this function was properly called.
|
|
# TODO: How should errors be handled/returned?
|
|
|
|
echo $SDEROOT/target/$target
|
|
}
|