|
| 1 | +# .bashrc login initialization script for serviceb account |
| 2 | +# |
| 3 | +# Configure the system properly for UNIX builds of CM, OM, OMI, etc. |
| 4 | +# In general, PATH data belongs in .bashrc; all else belongs in .bash_profile. |
| 5 | +# |
| 6 | +# IMPORTANT: This file is checked into git! Any edits should be done there! |
| 7 | + |
| 8 | +# Note: Build systems don't use 'tf' anymore, so don't deal with that |
| 9 | + |
| 10 | +# Save paths so, if we re-run ourselves, the path doesn't get needlessly long |
| 11 | + |
| 12 | +if [ "${SAVED_PATH:-==Unset==}" = "==Unset==" ]; then |
| 13 | + export SAVED_PATH="${PATH}" |
| 14 | +else |
| 15 | + export PATH="${SAVED_PATH}" |
| 16 | +fi |
| 17 | + |
| 18 | +if [ "${SAVED_LD_LIBRARY_PATH:-==Unset==}" = "==Unset==" ]; then |
| 19 | + export SAVED_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" |
| 20 | +else |
| 21 | + export LD_LIBRARY_PATH="${SAVED_LD_LIBRARY_PATH}" |
| 22 | +fi |
| 23 | + |
| 24 | +# Generic settings by O/S |
| 25 | + |
| 26 | +case `uname -s` in |
| 27 | + AIX) |
| 28 | + PATH=/usr/bin:/usr/local/bin:/usr/sbin:/usr/vacpp/bin:/opt/freeware/bin:$PATH |
| 29 | + PATH=$PATH:/opt/pware/samba/3.0.26a/bin:/usr/java5/jre/bin |
| 30 | + export PATH |
| 31 | + |
| 32 | + export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/dt/lib:/usr/local/lib |
| 33 | + export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig |
| 34 | + |
| 35 | + # Make sure artificial limits don't cause problems |
| 36 | + ulimit -m unlimited -n unlimited -s hard |
| 37 | + ;; |
| 38 | + |
| 39 | + Darwin) |
| 40 | + # Not currently building on Mac OS/X systems |
| 41 | + ;; |
| 42 | + |
| 43 | + HP-UX) |
| 44 | + PATH=$PATH:/usr/sbin:/opt/samba/bin:/opt/java1.5/jre/bin:/opt/aCC/bin:/opt/ansic/bin:/usr/local/bin |
| 45 | + export PATH |
| 46 | + |
| 47 | + # HP utilities are very sensitive to locale, and some don't work with utf8 |
| 48 | + LANG=C |
| 49 | + export LANG |
| 50 | + |
| 51 | + # Bash alias won't work in configure scripts; set path for make instead |
| 52 | + if [ ! -f ~/bin/make ]; then |
| 53 | + mkdir -p ~/bin |
| 54 | + ln -s /usr/local/bin/gmake ~/bin/make |
| 55 | + fi |
| 56 | + export PATH=~/bin:$PATH |
| 57 | + |
| 58 | + # Deal with OpenSSL linkages properly with pkg-config |
| 59 | + |
| 60 | + case `uname -m` in |
| 61 | + ia64) # ia64 |
| 62 | + export PKG_CONFIG_PATH=/opt/openssl/lib/hpux32/pkgconfig |
| 63 | + ;; |
| 64 | + |
| 65 | + 9000/800) # pa-risc |
| 66 | + export PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig |
| 67 | + ;; |
| 68 | + |
| 69 | + *) |
| 70 | + echo "ERROR: Unknown platform, check output of uname -m" |
| 71 | + exit 1 |
| 72 | + ;; |
| 73 | + esac |
| 74 | + ;; |
| 75 | + |
| 76 | + Linux) |
| 77 | + # Support Bullseye if installed (Note: Bullseye needs to be at start of path) |
| 78 | + if [ -d /opt/Bullseye/bin ]; then |
| 79 | + export PATH=/opt/Bullseye/bin:$PATH |
| 80 | + fi |
| 81 | + |
| 82 | + export PATH=$PATH:/usr/bin:/usr/local/bin:/usr/sbin |
| 83 | + ;; |
| 84 | + |
| 85 | + SunOS) |
| 86 | + # Sun systems put software in an unusual spot (generally not on path) |
| 87 | + if [ `uname -r` == '5.11' ]; then |
| 88 | + export MANPATH="/usr/share/man:/opt/solstudio12.2/man" |
| 89 | + export PATH="$PATH:/usr/bin:/usr/local/bin:/usr/sbin:/usr/gnu/bin:/opt/solstudio12.2/bin:/opt/csw/bin" |
| 90 | + else |
| 91 | + # Support Bullseye if installed (Note: Bullseye needs to be at start of path) |
| 92 | + if [ -d /opt/Bullseye/bin ]; then |
| 93 | + export PATH=/opt/Bullseye/bin:$PATH |
| 94 | + fi |
| 95 | + |
| 96 | + export MANPATH="/usr/share/man:/usr/sfw/man:/opt/sfw/man:/opt/SUNWspro/man:/usr/local/man" |
| 97 | + export PATH="$PATH:/usr/sbin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin" |
| 98 | + export PATH="$PATH:/opt/SUNWspro/bin:/opt/SUNWspro/prod/bin:/opt/csw/bin" |
| 99 | + fi |
| 100 | + |
| 101 | + if [ `uname -r` == '5.8' -o `uname -r` == '5.9' ]; then |
| 102 | + # Fix up LD_LIBRARY_PATH so we can run openssl ... |
| 103 | + export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/ssl/lib |
| 104 | + fi |
| 105 | + ;; |
| 106 | + |
| 107 | + *) |
| 108 | + ;; |
| 109 | +esac |
0 commit comments