- Add AIX support,
- Add --list (-l), --listid (-li) and --listenv (-le) options. - Add and rework many scripts in etc/envmng.d directory...
This commit is contained in:
parent
f7d6813e0c
commit
2d810ded10
@ -1,18 +0,0 @@
|
||||
# $RCSfile: 32bits,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Author: agibert $
|
||||
|
||||
case "$1" in
|
||||
*profile)
|
||||
export ARCH=32BITS
|
||||
;;
|
||||
|
||||
*rc)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: Invalid command: [$1] !"
|
||||
;;
|
||||
esac
|
@ -1,18 +0,0 @@
|
||||
# $RCSfile: 64bits,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Author: agibert $
|
||||
|
||||
case "$1" in
|
||||
*profile)
|
||||
export ARCH=64BITS
|
||||
;;
|
||||
|
||||
*rc)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: Invalid command: [$1] !"
|
||||
;;
|
||||
esac
|
@ -1,27 +0,0 @@
|
||||
# $RCSfile: mqm32,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Author: agibert $
|
||||
|
||||
case "$1" in
|
||||
*profile)
|
||||
export MQM_HOME=/opt/mqm
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# PATH definitions
|
||||
#----------------------------------------------------------------------------
|
||||
path=$MQM_HOME/bin
|
||||
export PATH=$(envmng_path_add "$PATH" "$path")
|
||||
|
||||
shlib_path=$MQM_HOME/lib
|
||||
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
|
||||
;;
|
||||
|
||||
*rc)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: Invalid command: [$1] !"
|
||||
;;
|
||||
esac
|
@ -1,27 +0,0 @@
|
||||
# $RCSfile: mqm64,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Author: agibert $
|
||||
|
||||
case "$1" in
|
||||
*profile)
|
||||
export MQM_HOME=/opt/mqm
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# PATH definitions
|
||||
#----------------------------------------------------------------------------
|
||||
path=$MQM_HOME/bin
|
||||
export PATH=$(envmng_path_add "$PATH" "$path")
|
||||
|
||||
shlib_path=$MQM_HOME/lib64:$MQM_HOME/lib
|
||||
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
|
||||
;;
|
||||
|
||||
*rc)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: Invalid command: [$1] !"
|
||||
;;
|
||||
esac
|
@ -1,43 +0,0 @@
|
||||
# $RCSfile: system,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Author: agibert $
|
||||
|
||||
path=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/imake/bin:/opt/aCC/bin:/opt/cxperf/bin:/opt/scr/bin:/opt/graphics/common/bin:/opt/STK/bin:/opt/seos/bin
|
||||
|
||||
shlib_path=/usr/lib
|
||||
|
||||
manpath=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/mqm/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/cxperf/share/man:/opt/scr/share/man:/opt/graphics/common/man:/opt/EMCpower/share:/opt/STK/share/man
|
||||
|
||||
|
||||
|
||||
case "$1" in
|
||||
*profile)
|
||||
export PATH=$(envmng_path_add "$PATH" "$path")
|
||||
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
|
||||
export MANPATH=$(envmng_path_add "$MANPATH" "$manpath")
|
||||
|
||||
if [ "$DISPLAY" = "" ]
|
||||
then
|
||||
export DISPLAY="$($grep "^$LOGNAME:" $envmng_display | $sed -e "s/^$LOGNAME:[ \ ]*//" -e "s/[ \ ]*#.*$//"):0"
|
||||
fi
|
||||
|
||||
stty erase ^?
|
||||
stty kill ^U
|
||||
stty eol ^@
|
||||
stty susp ^Z
|
||||
stty intr ^C
|
||||
# stty rprnt ^R
|
||||
stty werase ^W
|
||||
stty lnext ^V
|
||||
;;
|
||||
|
||||
*rc)
|
||||
alias ls=ls
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: Invalid command: [$1] !"
|
||||
;;
|
||||
esac
|
@ -1,10 +1,19 @@
|
||||
# $RCSfile: envmng_id,v $
|
||||
# $Revision: 1.1 $
|
||||
# $Revision: 1.2 $
|
||||
# $Name: $
|
||||
# $Date: 2009/01/12 17:59:03 $
|
||||
# $Date: 2009/01/13 13:38:55 $
|
||||
# $Author: agibert $
|
||||
|
||||
dtarget: user:shell:imr:ic:cristal:stk:ora920a:tux80:mqm64:dtarget:snav:pvcs:purify:64bits:system:gnu
|
||||
dtarget-gnu: user:gnu:shell:imr:ic:cristal:stk:ora920a:tux80:mqm64:dtarget:snav:pvcs:purify:64bits:system
|
||||
d2target: user:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm32:d2target:snav:pvcs:purify:32bits:system:gnu
|
||||
d2target-gnu: user:gnu:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm32:d2target:snav:pvcs:purify:32bits:system
|
||||
# HP/UX Example
|
||||
dtarget: user:shell:imr:ic:cristal:stk:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system:gnu
|
||||
dtarget-gnu: user:gnu:shell:imr:ic:cristal:stk:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system
|
||||
d2target: user:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm-32:d2target:snav:pvcs:purify:hpux-32:hpux-system:gnu
|
||||
d2target-gnu: user:gnu:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm-32:d2target:snav:pvcs:purify:hpux-32:hpux-system
|
||||
|
||||
# AIX Example
|
||||
migtt2: user:shell:ora10:mqm-64:migtt2:java14:vac:aix-64:aix-system:gnu
|
||||
migtt2-gnu: user:gnu:shell:ora10:mqm-64:migtt2:java14:vac:aix-64:aix-system
|
||||
migtt2-64: user:shell:ora10:mqm-64:migtt2:java14:vac:aix-64:aix-system:gnu
|
||||
migtt2-g64: user:gnu:shell:ora10:mqm-64:migtt2:java14:vac:aix-64:aix-system
|
||||
migtt2-32: user:shell:ora10:mqm-32:migtt2:java14:vac:aix-32:aix-system:gnu
|
||||
migtt2-g32: user:gnu:shell:ora10:mqm-32:migtt2:java14:vac:aix-32:aix-system
|
||||
|
Loading…
Reference in New Issue
Block a user