X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fset_path;h=10a4179f72176a402d28e14ab95a6a819a8af75d;hb=1140ca8d56832ae529db0f353112ac192cdf9432;hp=cccac0d39498225c427c98d47e180d1f28c43f22;hpb=28aaed87a992d0b6086bb355ad2c3f20eabd157e;p=clearscm.git diff --git a/rc/set_path b/rc/set_path index cccac0d..10a4179 100644 --- a/rc/set_path +++ b/rc/set_path @@ -14,7 +14,7 @@ ################################################################################ function append_to_path { component="$1" - + if [ -d "$component" ]; then if [ -z "$PATH" ]; then PATH="$component" @@ -24,6 +24,14 @@ function append_to_path { fi } # append_to_path +function prepend_to_path { + component="$1" + + if [ -d "$component" ]; then + PATH="$component:$PATH" + fi +} # prepend_to_path + function append_to_manpath { component="$1" @@ -77,20 +85,25 @@ path_dirs="$path_dirs\ /usr/local/bin\ /usr/afsws/bin\ /usr/afsws\ + /usr/xpg4/bin\ /bin\ /sbin\ /usr/bin\ + /usr/games\ /usr/X11R6/bin\ /usr/bin/X11\ /usr/dt/bin\ /usr/openwin/bin\ /usr/kerberos/bin\ /opt/rational/clearcase/bin\ + /opt/rational/clearquest/bin\ /opt/ibm/rationalsdlc/clearcase/bin\ /opt/ibm/rationalsdlc/clearcase/etc\ /opt/ibm/rationalsdlc/clearquest/bin\ /opt/ibm/rationalsdlc/clearquest\ /opt/ibm/rationalsdlc/common\ + /opt/perforce/bin\ + /opt/perforce/sbin\ /usr/sbin\ /usr/ccs/bin\ /usr/seos/bin\ @@ -135,4 +148,3 @@ if [ "hp-ux" = "10" ]; then export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin fi -