X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fset_path;h=c44ae6d37f93898cbdaf659d2f7c8b5bd6845f7d;hb=b19aff368e8114dd44bbd7e306b0946f060e3051;hp=8eaf9da8bb7585b897c41f12e5dbbbf9b728598d;hpb=020a4a5ea2be725b155cae3a2cadc9aba3911b9b;p=clearscm.git diff --git a/rc/set_path b/rc/set_path index 8eaf9da..c44ae6d 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" @@ -71,34 +79,41 @@ path_dirs="$path_dirs\ /opt/Rational/Clearcase/bin\ /opt/Rational/ClearQuest\ /opt/Rational/Common\ - /bin\ - /sbin\ /usr/local/mysql/bin\ /usr/local/maps/bin\ + /usr/local/ddts/bin\ + /usr/local/bin\ /usr/afsws/bin\ /usr/afsws\ + /usr/xpg4/bin\ + /bin\ + /sbin\ /usr/bin\ + /usr/games\ /usr/X11R6/bin\ /usr/bin/X11\ - /usr/local/ddts/bin\ - /usr/local/bin\ /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\ /usr/ucb\ /opt/ssh/bin\ /tools/bin\ + /snap/bin\ $systemroot/System32\ $systemroot\ -" +" manpath_dirs="\ /usr/share/man\ @@ -112,7 +127,7 @@ manpath_dirs="\ /opt/ssh/man\ /opt/medusa/share/man\ /usr/afsws/man\ -" +" PATH= for component in $path_dirs; do @@ -134,4 +149,3 @@ if [ "hp-ux" = "10" ]; then export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin fi -