=head1 NAME

mst-ots-build - MST specific ots-build wrapper

=head1 SYNTAX


  # 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

=head1 DESCRIPTION

This is a wrapper around B<ots-build> to customize it for the MST
environment.  Instead of sourcing the B<ots-build> script, source the
B<mst-ots-build> script.  Then follow the instructions for
B<ots-build>.

=head2 What is changed

The following changes are made to the standard B<ots-build> functionality:


=over

=item *

All of the B<sysarch> environment variables are available

=item *

Additional options are available:

=over

=item C<--ots-root>

It defaults to C<${MST_ROOT}/ots>.  if C<$MST_ROOT> is not
set, it is set to C</proj/axaf>.

=item C<--ots-pkgs>

It defaults to C<${ots_root}/pkgs>

=item C<--sysplat>

It defaults to the B<sysarch> C<platform_os_generic>
variable. (Historically this was the C<$platform> variable, but this
clashes with the B<sysarch> C<$platform> variable.

=item C<--make>

The name of the B<make> command.  On Solaris this defaults to
B<gmake>; everywhere else it's B<make>.  The result is also made
available in the C<MAKE> shell variable.

=item C<--tar>

The name of the B<tar> command.  On Solaris this defaults to
B<gtar>; everywhere else it's B<tar>.  The result is also made
available in the C<TAR> shell variable.

=item C<--config-opts>

This is an array which can be used to provide additional configuration
options.

=back

=item *

The C<prefix> option defaults to C<$ots_root/$package>

=item *

The C<exec-prefix> option defaults to C<$prefix/$sysplat>

=item *

Additional build variables

=over

=item C<ots_prefix>

Defaults to C<$ots_root>.

=item C<ots_exec_prefix>

Defaults to C<${ots_prefix}/${sysplat}>

=item C<pkg_config_dir>

Where the B<pkg-config> specification files are stored.

=back

=back


=head1 COPYRIGHT AND LICENSE



=head1 AUTHOR

Diab Jerius E<lt>djerius@cfa.harvard.eduE<gt>

