sde-target(1) DG/UX R4.11 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 dgkernel. If you
specify default, the environment is reset to the default
environment. If you omit target, the current environment is
printed on standard error. Target names a directory in
/usr/sde.
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.
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 dgkernel Output sh(1) commands to set the SDE target
to the environment named dgkernel.
FILES
/usr/sde Root of the SDE domain.
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.
Licensed material--property of copyright holder(s)