sde-target(1) DG/UX 5.4.2 sde-target(1)
NAME
sde-target - print commands to reset software development environment
target
SYNOPSIS
sde-target [ -sh | -csh ] [ target ]
DESCRIPTION
The sde-target command prints the shell command lines that must be
executed to reset your environment so that the software development
tools produce code for a specified target (see sde(5)). These shell
command lines reset your environment by setting the
TARGETBINARYINTERFACE environment variable to the validated
pathname component of a directory in /usr/sde.
The best way to use sde-target is to embed it in an eval command that
you invoke via a C shell alias or a Bourne shell function (see sh(1)
and csh(1)).
For example, the following csh(1) command creates an alias targ that
invokes sde-target and executes the commands it returns:
alias targ 'eval `sde-target -csh \!*`'
The following sh(1) command creates a shell function that does the
same:
targ () eval `sde-target -sh "$@"`
After you create targ or a similar alias or function, you can set
your software development environment by invoking targ with the
proper environment name.
The specific command lines that sde-target prints may change in the
future. The use of eval as prescribed above will protect you against
such changes.
OPTIONS
-sh Print commands in Bourne shell syntax.
-csh Print commands in C shell syntax.
target Specify the target system, for example m88kbcs. If you
specify default, the environment is reset to the default
environment. If you omit target, the current environment is
printed on standard error.
You may specify either -sh or -csh on a single sde-target invocation,
but not both. If you specify neither, sde-target reads the
environment variable SHELL (defined under login(1)) to determine
which shell to use. If this method fails, an error is reported.
Target names a directory in /usr/sde.
Licensed material--property of copyright holder(s) 1
sde-target(1) DG/UX 5.4.2 sde-target(1)
EXAMPLES
sde-target Print the current SDE target.
sde-target -csh default Output csh(1) commands to reset the SDE
target to the default environment.
sde-target -sh m88kbcs Output sh(1) commands to set the SDE target
to the environment named m88kbcs.
FILES
/usr/sde/$TARGETBINARYINTERFACE
Root of the target SDE domain.
~/.cshrc User's C shell alias for sde-target.
$HOME/.profile User's Bourne shell function for sde-target.
DIAGNOSTICS
unknown shell The shell was not specified and could not be
determined.
no such target The given target does not exist.
SEE ALSO
csh(1), sh(1), sdetab(4), sde(5).
NOTE
It is not possible to establish an environment from make(1) directly.
Sde-target must be used before invoking make. It is possible when
using super-makes to do this automatically.
Licensed material--property of copyright holder(s) 2