| 1 | # sw-env |
| 2 | # |
| 3 | # Default environment for `sw' remote commands |
| 4 | # |
| 5 | |
| 6 | # --- Syntax summary --- |
| 7 | # |
| 8 | # This file can contain the following sorts of statements: |
| 9 | # |
| 10 | # arch ARCH { STATEMENTS } |
| 11 | # include FILE |
| 12 | # [set] VAR [=] VALUE |
| 13 | # unset VAR |
| 14 | # |
| 15 | # Statements may optionally be terminated by semicolons; this isn't |
| 16 | # required for the syntax to work properly. The `set' keyword is only |
| 17 | # needed when VAR is one of the keywords. Everything is case sensitive. |
| 18 | # |
| 19 | # The `arch' statement groups architecture-specific assignments |
| 20 | # together. Variables are only modified if ARCH matches the current |
| 21 | # architecture. |
| 22 | |
| 23 | # --- The state of the world --- |
| 24 | # |
| 25 | # The initial environment is the (complete) invoking environment, |
| 26 | # overridden by the (skeletal) local environment set up by the remote |
| 27 | # shell. Additionally, `$SW_ARCH' is the current architecture name. |
| 28 | |
| 29 | # --- Set a sensible path --- |
| 30 | |
| 31 | PATH = "/usr/bin:/bin:/usr/local/bin"; |
| 32 | arch sparc-solaris { PATH = "$PATH:/usr/ccs/bin:/opt/SUNWspro/bin"; } |
| 33 | PATH = "$PATH:/sw/common/arch/$SW_ARCH:/ebi/supported/bin"; |
| 34 | |
| 35 | # --- Remove some dross that will probably break things --- |
| 36 | |
| 37 | unset LD_LIBRARY_PATH; |
| 38 | unset LD_PRELOAD; |
| 39 | |
| 40 | # --- Include package-specific definitions --- |
| 41 | |
| 42 | include ".sw-env"; |