mst-ots-build - MST specific ots-build wrapper
# load library
if ots_build=$(pkg-config --libs mst-ots-build); then
. $ots_build
else
echo >&2 "unable to load mst-ots-build library"
exit 1
fi
# override some default variables
otsb_set var1 val1
otsb_set var2 val2
# initialize the library
otsb_init
# parse the command line
otsb_options "$@"
# create default build variables
otsb_set_build_variables
otsb_run_req_cmds
This is a wrapper around ots-build to customize it for the MST environment. Instead of sourcing the ots-build script, source the mst-ots-build script. Then follow the instructions for ots-build.
The following changes are made to the standard ots-build functionality:
All of the sysarch environment variables are available
Additional options are available:
--ots-rootIt defaults to ${MST_ROOT}/ots. if $MST_ROOT is not set, it is set to /proj/axaf.
--ots-pkgsIt defaults to ${ots_root}/pkgs
--sysplatIt defaults to the sysarch platform_os_generic variable. (Historically this was the $platform variable, but this clashes with the sysarch $platform variable.
--makeThe name of the make command. On Solaris this defaults to gmake; everywhere else it's make. The result is also made available in the MAKE shell variable.
--tarThe name of the tar command. On Solaris this defaults to gtar; everywhere else it's tar. The result is also made available in the TAR shell variable.
--config-optsThis is an array which can be used to provide additional configuration options.
The prefix option defaults to $ots_root/$package
The exec-prefix option defaults to $prefix/$sysplat
Additional build variables
ots_prefixDefaults to $ots_root.
ots_exec_prefixDefaults to ${ots_prefix}/${sysplat}
pkg_config_dirWhere the pkg-config specification files are stored.
Diab Jerius <djerius@cfa.harvard.edu>