################################################################################
function append_to_path {
component="$1"
-
+
if [ -d "$component" ]; then
if [ -z "$PATH" ]; then
PATH="$component"
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"
export SHLIB_PATH=$SHLIB_PATH:$M_LROOT/bin
export LD_LIBRARY_PATH=$SHLIB_PATH:$M_LROOT/bin
fi
-