sde-target(1) DG/UX 4.30 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
you execute to reset your environment so that the software
development tools produce code for a specified target. The
command lines reset your environment by setting the
SDETARGET environment variable to the validated pathname
component of a directory in /usr/sde.
The easiest 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.
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) Page 1
sde-target(1) DG/UX 4.30 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/$SDE_TARGET 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.
SEE ALSO
csh(1), sh(1), ld(1), sdetab(4), sde(5)
DIAGNOSTICS
unknown shell The shell was not specified and could not be
determined.
no such target The given target does not exist.
LIMITATIONS
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) Page 2