p_set
NAME
project set - set a project as current project
SYNOPSIS
project set [-w project_path] [-f] [-t] [-v] [-s] [-n] [-a] [-r] [-u
userid] [-N node] [-S] [-x command] [project] [subdir]
DESCRIPTION
The project set command sets an environment for the specified project,
which means:
* Execute the startup file stored in the project's /tools directory.
* Set working directory to the user's working directory, as defined
by the project addmember command.
* If subdir is specified and it does not exist in the user's
directory, it is created. If the subdirectory is named according to
a system added to the project, an RCS link to the system library is
created. If -a option is specified then the directory structure
which correspond to the selected system structure is created. For
each RCS library in the system, a link named RCS to it is created.
* Execute the startup file stored in the member's working directory.
* Define the following environment variables:
SDE_PROJECT=project
SDE_PROJECT_DIR=project_directory
SDE_PROJECT_WD=working_directory
SDE_SYSTEM=system
SDE_SYSTEM_DIR=system_directory
SDE_SYSCONF=system_configuration
SDE_CONFROOT=ystem_configuration_current_root_in_the_project
* Optionally create a new terminal window (-t option). Set the
following prompt for the shell: node:project$
* Optionally invokes SDE Control Panel which makes is possible to
select a tool encapsulated in Softbench (-s option). When SDE
control Panel is invoked, then the file.B ~/.softenv is created.
This file includes all current environment variables and
SDE_PROJECT* and SDE_SYSTEM* variables specified above.
* Optionally create a VUE File Manager window (-v option).
PARAMETERS
project
A project to be setup.
subdir
A subdirectory in the working directory of the user. Usually it
is a subdirectory where a user works with a system. If the
subdirectory has the name of a system added to the project, then
an RCS link is created to the system library. If -r option is
defined then the subdirectory in the project root is set up.
OPTIONS
-w[ork_directory] project_path
Defines a project by path instead of its name.
-r[eference]
Sets the project root directory as curent directory.
-u[ser] userid
Sets the working directory of the user specified by userid.
-f Executes the command without asking about the parameters.
-t[erminal]
Creates a new terminal window.
-v[ue]
Creates a new VUE file manager window.
-s[oftbench]
Invokes SDE control Panel window. Creates the ~/.softenv file
that includes currently defined environment variables.
-S Creates only the ~/.softenv file that is used by Softbench
applications. If the same .softenv is already created (i.e. it
has the same SDE_CONFROOT variable) the new .softenv file is not
created.
-n[o_window]
Creates a new process in the same terminal window from which the
command is invoked. If options -v -t -s are not specified this
option is the default one.
-x command
Sets up the project and execute the specified command as a sub-
process. If a new terminal window was required (-t option), then
the command is executed in the created terminal.
-a Creates a working directory structure which corresponds to the
system structure pointed from the project.
-N Node
Creates a terminal window on a remote node Node.
EXAMPLES
$ project set ex_proj
System (or subdirectory in the project user dir) :
Welcome to the ex_proj project
ws100:ex_proj$
FILES
~/.softenv
/ipa/projects/project/tools/startup
/ipa/projects/project/members/userid/startup
DIRECTORIES
/ipa/projects/project/members/userid
/ipa/projects/project/systems
SEE ALSO
p_create(1) p_addsystem(1) p_addwd(1)
AUTHOR
Ivica Crnkovic