X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fset_path;h=104ab8f6483d113f2081aed381646ef93924a1a4;hb=7ddf095f187ca60d9a70fb83b2bc3c2b6d91f088;hp=cccac0d39498225c427c98d47e180d1f28c43f22;hpb=56ed74d620f8fbba5430642cf4ddbcb8b818b9a3;p=clearscm.git diff --git a/rc/set_path b/rc/set_path index cccac0d..104ab8f 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,29 +85,38 @@ 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/mycroft-core/bin\ + /opt/perforce/bin\ + /opt/perforce/sbin\ /usr/sbin\ /usr/ccs/bin\ /usr/seos/bin\ /usr/ucb\ /opt/ssh/bin\ /tools/bin\ + /snap/bin\ + /System/bin\ + /opt/bin\ $systemroot/System32\ $systemroot\ -" +" manpath_dirs="\ /usr/share/man\ @@ -113,7 +130,7 @@ manpath_dirs="\ /opt/ssh/man\ /opt/medusa/share/man\ /usr/afsws/man\ -" +" PATH= for component in $path_dirs; do @@ -135,4 +152,3 @@ if [ "hp-ux" = "10" ]; then export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin fi -