02.05.2013 Views

User Guide - Mks.com

User Guide - Mks.com

User Guide - Mks.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Window Type Opened Associated Environment Variable<br />

Project For an open project window:<br />

Source Integrity Graphical <strong>User</strong> Interface<br />

MKSSI_WINDOW=project<br />

MKSSI_FILE=server-side-project-path<br />

MKSSI_NMEMBER=number of MKSSI_MEMBERxx entries<br />

MKSSI_NSUBPROJECT=number of MKSSI_SUBPROJECTyy entries<br />

If any members are selected, then the following variables apply:<br />

MKSSI_MEMBERxx=path-relative-to-project<br />

MKSSI_MEMBER_PROJECTxx=server-side-project/subproject-path<br />

If any subprojects are selected, then the following variables apply:<br />

MKSSI_SUBPROJECTyy=path-relative-to-project<br />

MKSSI_SUBPROJECT_PROJECTyy=server-side-project/subprojectpath<br />

That is, if there are n members selected and m subprojects selected then you have<br />

n occurrences of MKSSI_MEMBER numbered from 1 to n and the number n is also<br />

passed in MKSSI_NMEMBER. There are also occurrences of MKSSI_SUBPROJECT,<br />

numbered from 1 to m, and the number m is passed in MKSSI_NSUBPROJECT.<br />

If a subdirectory is selected, then it is as if that subdirectory is recursively<br />

expanded (only the directories, not subprojects) and all members are selected.<br />

Because a given member may not be in the top level project that is open in the<br />

view, each variable for MKSSI_MEMBER and MKSS_SUBPROJECT has a<br />

corresponding entry for MKSSI_MEMBER_PROJECTxx and<br />

MKSSI_SUBPROJECT_PROJECTxx. Therefore, each MEMBER/SUBPROJECT<br />

variable is relative to its corresponding PROJECT entry, not to the top level<br />

indicated in MKSSI_FILE.<br />

For example:<br />

i=1<br />

while [ $i -le $MKSSI_NMEMBER ]<br />

do<br />

eval si <strong>com</strong>mand<br />

-P\${MKSSI_MEMBER_PROJECT$i}\${MKSSI_MEMBER$i}<br />

let i=i+1<br />

done<br />

Note: If set, the environment variables MKSSI_VARIANT and MKSSI_BUILD are<br />

also exported when invoking an si <strong>com</strong>mand with the options for --devpath and<br />

--projectrevision.<br />

Sandbox For an open sandbox window:<br />

MKSSI_WINDOW=sandbox<br />

MKSSI_FILE=full-path-to-sandbox<br />

MKSSI_NMEMBER=number of MKSSI_MEMBER objects<br />

MKSSI_NSUBPROJECT=number of MKSSI_SUBPROJECT objects<br />

Note: The variables MKSSI_MEMBERxx= and MKSSI_SUBPROJECTxx= take the<br />

same settings as for a project window. The corresponding variables<br />

MKSSI_MEMBER_SANDBOXxx and MKSSI_SUBPROJECT_SANDBOXxx are also as<br />

described for a project. If applicable, MKSSI_VARIANT and MKSSI_BUILD are<br />

also set.<br />

93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!