projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of defaria.com:/opt/git/clearscm
[clearscm.git]
/
rc
/
set_path
diff --git
a/rc/set_path
b/rc/set_path
index
cccac0d
..
c3f9580
100644
(file)
--- a/
rc/set_path
+++ b/
rc/set_path
@@
-14,7
+14,7
@@
################################################################################
function append_to_path {
component="$1"
################################################################################
function append_to_path {
component="$1"
-
+
if [ -d "$component" ]; then
if [ -z "$PATH" ]; then
PATH="$component"
if [ -d "$component" ]; then
if [ -z "$PATH" ]; then
PATH="$component"
@@
-24,6
+24,14
@@
function append_to_path {
fi
} # 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"
function append_to_manpath {
component="$1"
@@
-135,4
+143,3
@@
if [ "hp-ux" = "10" ]; then
export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin
export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin
fi
export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin
export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin
fi
-