From 2d810ded104da45c84d887d35f2be3069bbd69f6 Mon Sep 17 00:00:00 2001 From: agibert Date: Tue, 13 Jan 2009 13:38:55 +0000 Subject: [PATCH] - Add AIX support, - Add --list (-l), --listid (-li) and --listenv (-le) options. - Add and rework many scripts in etc/envmng.d directory... --- etc/envmng.d/32bits | 18 ------------------ etc/envmng.d/64bits | 18 ------------------ etc/envmng.d/mqm32 | 27 --------------------------- etc/envmng.d/mqm64 | 27 --------------------------- etc/envmng.d/system | 43 ------------------------------------------- etc/envmng_id | 21 +++++++++++++++------ 6 files changed, 15 insertions(+), 139 deletions(-) delete mode 100644 etc/envmng.d/32bits delete mode 100644 etc/envmng.d/64bits delete mode 100644 etc/envmng.d/mqm32 delete mode 100644 etc/envmng.d/mqm64 delete mode 100644 etc/envmng.d/system diff --git a/etc/envmng.d/32bits b/etc/envmng.d/32bits deleted file mode 100644 index 917b651..0000000 --- a/etc/envmng.d/32bits +++ /dev/null @@ -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 diff --git a/etc/envmng.d/64bits b/etc/envmng.d/64bits deleted file mode 100644 index fab646d..0000000 --- a/etc/envmng.d/64bits +++ /dev/null @@ -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 diff --git a/etc/envmng.d/mqm32 b/etc/envmng.d/mqm32 deleted file mode 100644 index d5d2ff0..0000000 --- a/etc/envmng.d/mqm32 +++ /dev/null @@ -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 diff --git a/etc/envmng.d/mqm64 b/etc/envmng.d/mqm64 deleted file mode 100644 index 08cf4d7..0000000 --- a/etc/envmng.d/mqm64 +++ /dev/null @@ -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 diff --git a/etc/envmng.d/system b/etc/envmng.d/system deleted file mode 100644 index 6290b9c..0000000 --- a/etc/envmng.d/system +++ /dev/null @@ -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 diff --git a/etc/envmng_id b/etc/envmng_id index 1a51df8..87e56e0 100644 --- a/etc/envmng_id +++ b/etc/envmng_id @@ -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