Compare commits

..

11 Commits

Author SHA1 Message Date
agibert
b3b73120f3 - Update envmng modules. 2009-01-13 17:32:17 +00:00
agibert
4bbbee1298 - Add fancy color prompt suport,
- Use $Name CVS tag in version print out,
- Update some env modules.
2009-01-13 17:31:53 +00:00
agibert
153a5d548f - Update with installation path,
- Update envmng usage and id lists.
2009-01-13 17:30:14 +00:00
agibert
726fc27ef5 - Add WAS 6 module,
- Replace old java modules.
2009-01-13 17:05:52 +00:00
agibert
7ae666101c - Remove obsolete application module (cristal, ic, ...),
- Remove replaced one (mqm-*).
2009-01-13 17:02:31 +00:00
agibert
e1e2f01ed6 - Minor cleanup,
- Add fancy prompt ($PS1) color handling.
2009-01-13 16:59:17 +00:00
agibert
f6ac4f0426 - Minor cleanup,
- Use $Name CVS tag in version print out.
2009-01-13 14:07:53 +00:00
agibert
2d810ded10 - Add AIX support,
- Add --list (-l), --listid (-li) and --listenv (-le) options.
- Add and rework many scripts in etc/envmng.d directory...
2009-01-13 13:38:55 +00:00
agibert
f7d6813e0c - Add AIX support,
- Add --list (-l), --listid (-li) and --listenv (-le) options.
- Add and rework many scripts in etc/envmng.d directory...
2009-01-13 13:27:53 +00:00
agibert
ab501b3433 First working version ! 2009-01-13 09:35:01 +00:00
agibert
d601f481e1 First working version ! 2009-01-12 17:59:03 +00:00
42 changed files with 1699 additions and 5 deletions

View File

@ -1,11 +1,159 @@
# $RCSfile: ReadMe.txt,v $ # $RCSfile: ReadMe.txt,v $
# $Revision: 1.1 $ # $Revision: 1.4 $
# $Name: $ # $Name: $
# $Date: 2009/01/12 15:36:39 $ # $Date: 2009/01/13 17:30:14 $
# $Author: agibert $ # $Author: agibert $
This first release has been lost... RIP ! Welcome to EnvMng (Unix shell Environment Manager) !
This release of EnvMng supports the following OSes:
- AIX 5.3,
- HP UX 11.0.
EnvMng is licensed under the GNU GPL Licenses.
For more information, please read the corresponding source file headers.
The license details can be found in the GNU-GPL.txt and GNU-FDL.txt files.
envmng installation
-------------------------------------------------------------------------------
- rename ~/.profile into ~/.profile.old
- rename ~/.dtprofile into ~/.profile.old
- rename ~/.login into ~/.login.old
- copy <EnvMngDir>/etc/skel/.profile to ~/.profile
- copy <EnvMngDir>/etc/skel/.dtprofile to ~/.dtprofile
- soft link ~/.bash_profile to <EnvMngDir>/etc/envmng_rc
Eg. <EnvMngDir> can be /usr/local
envmng usage
-------------------------------------------------------------------------------
Usage: envmng [COMMAND] [OPTION]
-b, --bash [<Id>] [norc] switch to bash and set id to <Id>
-k, --ksh [<Id>] [norc] switch to ksh and set id to <Id>
-S, --setid <Id> [norc] set id to <Id>
-R, --reset <EnvList> reset envlist to <EnvList>
-a, --add <Env> [head|tail] add <Env> in envlist head or tail
-d, --del <Env> del <Env> from envlist
-p, --profile [<Env>] do envlist or <Env> profile
-r, --rc [<Env>] do envlist or <Env> rc
-s, --status print status
-l, --list list Id(s), EnvList(s) and Env(s)
-li, --listid list Id(s) and EnvList(s)
-le, --listenv list Env(s)
-h, --help print this help
-V, --version print version
envmng usage example
-------------------------------------------------------------------------------
- print curent env status: "envmng -s"
- list ids, envlists and envs: "envmng -l"
- switch to dtarget-gnu env: "envmng -S dtarget-gnu" or "env-dtarget"
- switch to d2target-gnu env: "envmng -S d2target-gnu" or "env-d2target"
- switch to ksh: "envmng -k" or "env-ksh"
- switch to bash in dtarget-gnu env: "envmng -b dtarget-gnu"
user env customization
-------------------------------------------------------------------------------
- copy <EnvMngDir>/etc/envmng.d/env_template to ~/.envmng_user
- add user customization into ~/.envmng_user
.profile template example
-------------------------------------------------------------------------------
clear
. /usr/local/etc/envmng_profile d2target-gnu bash
#. /usr/local/etc/envmng_profile d2target ksh
.dtprofile template example
-------------------------------------------------------------------------------
. /usr/local/etc/envmng_dtprofile d2target-gnu bash
#. /usr/local/etc/envmng_dtprofile d2target-gnu ksh
EnvMng Id List (<EnvMngDir>/etc/envmng_id)
-------------------------------------------------------------------------------
# HP/UX Example
dtarget: user:shell:imr:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system:gnu
dtarget-gnu: user:gnu:shell:imr:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system
d2target: user:shell:imr:ora817a:tux80:mqm-32:d2target:snav:pvcs:purify:hpux-32:hpux-system:gnu
d2target-gnu: user:gnu:shell:imr:ora817a:tux80: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
Protected varibles (<EnvMngDir>/etc/envmng_protvar)
-------------------------------------------------------------------------------
DISPLAY
DT
ENVMNG_ID
ENVMNG_LIST
MAIL
LOGNAME
HOME
PS1
PS2
PS3
PS4
PWD
SHELL
SHLVL
TERM
TZ
USER
_
Protected aliases (<EnvMngDir>/etc/envmng_protalias)
-------------------------------------------------------------------------------
envmng
d2target-gnu Env Id default aliases
-------------------------------------------------------------------------------
alias env-bash='envmng --bash'
alias env-d2target='envmng -S d2target-gnu'
alias env-dtarget='envmng -S dtarget-gnu'
alias env-ksh='envmng --ksh'
alias envmng='. /home/dtarget/envmng/bin/envmng'
alias ll='ls -la'
alias ls='ls --color=auto'
alias snav='snavigator'
alias xem='xemacs'
Enjoy it!
Your EnvMng Team.
arnaud@rx3.net
http://www.rx3.org/dvp/?dvp=envmng

View File

@ -1,13 +1,41 @@
# $RCSfile: ReleaseNotes.txt,v $ # $RCSfile: ReleaseNotes.txt,v $
# $Revision: 1.1 $ # $Revision: 1.4 $
# $Name: $ # $Name: $
# $Date: 2009/01/12 15:36:39 $ # $Date: 2009/01/13 17:31:53 $
# $Author: agibert $ # $Author: agibert $
--------------------------------------------------------------------------------
EnvMng V 1.2.1 - A. Gibert - 2009/01/13
--------------------------------------------------------------------------------
- Add fancy color prompt suport,
- Use $Name CVS tag in version print out,
- Update some env modules.
--------------------------------------------------------------------------------
EnvMng V 1.2.0 - A. Gibert - 2005/08/01
--------------------------------------------------------------------------------
- New release for MigTT2 (Migration to Target 2) project (Banque de France - Paris),
- Add support for AIX,
- Fix minor bugs.
--------------------------------------------------------------------------------
EnvMng V 1.1.0 - A. Gibert - 2005/05/01
--------------------------------------------------------------------------------
- Fix minor bugs.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
EnvMng V 1.0.0 - A. Gibert - 2004/02/01 EnvMng V 1.0.0 - A. Gibert - 2004/02/01
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

322
bin/envmng Normal file
View File

@ -0,0 +1,322 @@
# $RCS envmng,v $
# $Revision: 1.3 $
# $Name: $
# $Date: 2009/01/13 14:07:53 $
# $Author: agibert $
# envmng - Unix shell Environment Manager
# Copyright (C) 2004-2005 Arnaud G. Gibert
# mailto:arnaud@rx3.net
# http://www.rx3.org/dvp/?dvp=envmng
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
EnvMng_Cmd="$1"
EnvMng_Env="$2"
EnvMng_Opt="$3"
#-------------------------------------------------------------------------------
# Installation Configuration
#-------------------------------------------------------------------------------
envmng_prefix=/usr/local/bin
envmng_d=$envmng_prefix/etc/envmng.d
envmng_id=$envmng_prefix/etc/envmng_id
envmng_protvar=$envmng_prefix/etc/envmng_protvar
envmng_protalias=$envmng_prefix/etc/envmng_protalias
envmng_display=$envmng_prefix/etc/envmng_display
#-------------------------------------------------------------------------------
# System configuration
#-------------------------------------------------------------------------------
basename=/bin/basename
env=/bin/env
sed=/bin/sed
grep=/bin/grep
printf=/bin/printf
alias envmng=". $envmng_prefix/bin/envmng"
#-------------------------------------------------------------------------------
envmng_rlist()
{
rlist=""
for elem in $1
do
rlist="$elem $rlist"
done
echo $rlist
}
envmng_path_add()
{
if [ "$1" != "" ]
then
echo "$2:$1"
else
echo "$2"
fi
}
envmng_path_rm()
{
echo "$1" | $sed -e "s/$(echo "$2" | $sed "s/\//\\\\\//g")//" -e "s/\:\:/\:/g" -e "s/^\://" -e "s/\:$//"
}
#set +o nounset
case "$EnvMng_Cmd" in
-b | --bash)
if [ "$EnvMng_Env" != "" ]
then
export ENVMNG_ID=$EnvMng_Env
fi
if [ "$BASH" = "" ]
then
echo "envmng: new shell: [bash] seting id: [$ENVMNG_ID]..."
export NEW_SHELL=/usr/local/bin/bash
$NEW_SHELL
unset NEW_SHELL
else
echo "envmng: allready in: [bash] seting id: [$ENVMNG_ID]..."
. /usr/local/bin/envmng --setid $ENVMNG_ID $EnvMng_Opt
fi
;;
-k | --ksh)
if [ "$EnvMng_Env" != "" ]
then
export ENVMNG_ID=$EnvMng_Env
fi
if [ "$BASH" != "" ]
then
echo "envmng: new shell: [ksh] seting id: [$ENVMNG_ID]..."
export NEW_SHELL=/bin/ksh
$NEW_SHELL
unset NEW_SHELL
else
echo "envmng: allready in: [ksh] seting id: [$ENVMNG_ID]..."
. /usr/local/bin/envmng --setid $ENVMNG_ID $EnvMng_Opt
fi
;;
-S | --setid)
echo "envmng: seting id: [$EnvMng_Env]..."
export ENVMNG_ID=$EnvMng_Env
. $envmng_prefix/bin/envmng --reset "$($grep "^$EnvMng_Env:" $envmng_id | $sed "s/^$EnvMng_Env:[ \ ]*//")" $EnvMng_Opt
;;
-R | --reset)
echo "envmng: reseting env [$EnvMng_Env]..."
echo "envmng: reseting profile..."
norc=$EnvMng_Opt
env_list=$($env | $sed -e "s/=.*//")
if [ "$env_list" != "" ]
then
for var in $env_list
do
if [ $var != "$($grep ^$var$ $envmng_protvar)" ]
then
unset $var
fi
done
fi
export ENVMNG_LIST="$EnvMng_Env"
echo "envmng: reseting aliases..."
alias_list=$(alias | $grep ".*=" | $sed -e "s/alias //" -e "s/=.*//")
if [ "$alias_list" != "" ]
then
for alias in $alias_list
do
if [ $alias != "$($grep ^$alias$ $envmng_protalias)" ]
then
unalias $alias
fi
done
fi
. $envmng_prefix/bin/envmng --profile
if [ "$norc" != "norc" ]
then
. $envmng_prefix/bin/envmng --rc
fi
;;
-a | --add)
if [ "$(echo $ENVMNG_LIST | $sed -e s/.*\:$EnvMng_Env/$EnvMng_Env/ -e s/$EnvMng_Env\:.*/$EnvMng_Env/)" != "$EnvMng_Env" ]
then
env_list=$(echo $ENVMNG_LIST | $sed -e "s/\:/ /g")
if [ "$EnvMng_Opt" = "tail" ]
then
echo "envmng: adding [$EnvMng_Env] on [$EnvMng_Opt]..."
if [ "$env_list" != "" ]
then
. $envmng_prefix/bin/envmng --reset $ENVMNG_LIST:$EnvMng_Env
else
export ENVMNG_LIST=$EnvMng_Env
. $envmng_prefix/bin/envmng --profile $EnvMng_Env
. $envmng_prefix/bin/envmng --rc $EnvMng_Env
fi
else
EnvMng_Opt=head
echo "envmng: adding [$EnvMng_Env] on [$EnvMng_Opt]..."
export ENVMNG_LIST=$EnvMng_Env:$ENVMNG_LIST
. $envmng_prefix/bin/envmng --profile $EnvMng_Env
. $envmng_prefix/bin/envmng --rc $EnvMng_Env
fi
else
echo "envmng: skipping [$EnvMng_Env] env !"
fi
;;
-d | --del)
echo "envmng: deleting [$EnvMng_Env]..."
if [ "$(echo $ENVMNG_LIST | $sed -e s/.*\:$EnvMng_Env/$EnvMng_Env/ -e s/$EnvMng_Env\:.*/$EnvMng_Env/)" == "$EnvMng_Env" ]
then
export ENVMNG_LIST=$(echo $ENVMNG_LIST | $sed -e "s/$EnvMng_Env//" -e "s/\:\:/\:/g" -e "s/^\://" -e "s/\:$//")
. $envmng_prefix/bin/envmng --reset $ENVMNG_LIST
else
echo "envmng: skipping [$EnvMng_Env] profile !"
fi
;;
-p | --profile | -r | --rc)
if [ "$EnvMng_Cmd" = "-p" ] | [ "$EnvMng_Cmd" = "--profile" ]
then
mode="profiling"
else
mode="rcing"
fi
echo "envmng: $mode..."
if [ "$EnvMng_Env" != "" ]
then
echo "envmng: $mode [$EnvMng_Env]..."
. $envmng_d/$EnvMng_Env ${EnvMng_Cmd}
else
env_list=$(envmng_rlist "$(echo $ENVMNG_LIST | $sed -e "s/\:/ /g")")
if [ "$env_list" != "" ]
then
for envi in $env_list
do
echo "envmng: $mode [$envi]..."
. $envmng_d/$envi ${EnvMng_Cmd}
done
fi
fi
;;
-s | --status)
echo "ENVMNG_ID: [$ENVMNG_ID] ENVMNG_LIST: [$ENVMNG_LIST]"
;;
-l | --list)
echo "Id and EnvList:"
. $envmng_prefix/bin/envmng --listid
echo
echo "Env:"
. $envmng_prefix/bin/envmng --listenv
;;
-li | --listid)
for line in $( $grep -v "^#" $envmng_id | $sed "s/:[ \ ]*/#/")
do
$printf "%-16s %s\n" $( echo $line | $sed "s/#.*/:/") $( echo $line | $sed "s/^.*#//")
done
;;
-le | --listenv)
for file in $envmng_d/*
do
if [[ ( -f $file ) && ( $file != *~ ) && ( $file != */env_template ) ]]
then
$printf "%-16s " $( echo $( $basename $file):)
echo $( $grep "^# description: " $file | $sed "s/^. description: //")
fi
done
;;
-h | --help)
echo "Usage: envmng [COMMAND] [OPTION]"
echo " -b, --bash [<Id>] [norc] switch to bash and set id to <Id>"
echo " -k, --ksh [<Id>] [norc] switch to ksh and set id to <Id>"
echo " -S, --setid <Id> [norc] set id to <Id>"
echo " -R, --reset <EnvList> reset envlist to <EnvList>"
echo " -a, --add <Env> [head|tail] add <Env> in envlist head or tail"
echo " -d, --del <Env> del <Env> from envlist"
echo " -p, --profile [<Env>] do envlist or <Env> profile"
echo " -r, --rc [<Env>] do envlist or <Env> rc"
echo " -s, --status print status"
echo " -l, --list list Id(s), EnvList(s) and Env(s)"
echo " -li, --listid list Id(s) and EnvList(s)"
echo " -le, --listenv list Env(s)"
echo " -h, --help print this help"
echo " -V, --version print version"
;;
-V | --version)
echo -n "envmng V "
echo "$Name: $" | sed -e 's/^[^-]*-//' -e 's/ .*//' -e 's/_/./g'
;;
*)
echo "$0: Invalid command: [$EnvMng_Cmd] !"
. $envmng_prefix/bin/envmng --help
;;
esac

23
etc/envmng.d/aix-32 Normal file
View File

@ -0,0 +1,23 @@
# $RCSfile: aix-32,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: AIX 32 bits mode
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export OBJECT_MODE=32
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

23
etc/envmng.d/aix-64 Normal file
View File

@ -0,0 +1,23 @@
# $RCSfile: aix-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: AIX 64 bits mode
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export OBJECT_MODE=64
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

47
etc/envmng.d/aix-system Normal file
View File

@ -0,0 +1,47 @@
# $RCSfile: aix-system,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: AIX System base configuration
#-------------------------------------------------------------------------------
case "$1" in
*profile)
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=/usr/linux/bin:/usr/ucb:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/opt/seos/bin:/usr/games
libpath=/usr/local/lib
manpath=/usr/local/man:/opt/seos/man:/opt/freeware/man
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

24
etc/envmng.d/d2target Normal file
View File

@ -0,0 +1,24 @@
# $RCSfile: d2target,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: D2Target project environment
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export TARGET_ID=d2target
export TARGET_HOME=/home/$TARGET_ID
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

24
etc/envmng.d/dtarget Normal file
View File

@ -0,0 +1,24 @@
# $RCSfile: dtarget,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: DTarget project environment
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export TARGET_ID=dtarget
export TARGET_HOME=/home/$TARGET_ID
;;
*rc)
;;
*)
envmng_echo "$0: Invalid command: [$1] !"
;;
esac

22
etc/envmng.d/env_template Normal file
View File

@ -0,0 +1,22 @@
# $RCSfile: env_template,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description:
#-------------------------------------------------------------------------------
case "$1" in
*profile)
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

41
etc/envmng.d/gnu Normal file
View File

@ -0,0 +1,41 @@
# $RCSfile: gnu,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: GNU softwares and libraries
#-------------------------------------------------------------------------------
path=/usr/local/bin
shlib_path=/usr/local/lib
manpath=/usr/local/man:/usr/local/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")
export LESS=-MM
export LESSOPEN='|/usr/local/bin/lesspipe.sh %s'
;;
*rc)
alias ls='ls --color=auto'
alias ll='ls -la'
alias xem=xemacs
function dmalloc { eval `command dmalloc -b $*`; }
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

23
etc/envmng.d/hpux-32 Normal file
View File

@ -0,0 +1,23 @@
# $RCSfile: hpux-32,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: HP/UX 32 bits mode
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ARCH=32BITS
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

23
etc/envmng.d/hpux-64 Normal file
View File

@ -0,0 +1,23 @@
# $RCSfile: hpux-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: HP/UX 64 bits mode
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ARCH=64BITS
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

51
etc/envmng.d/hpux-system Normal file
View File

@ -0,0 +1,51 @@
# $RCSfile: hpux-system,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: HP/UX System base configuration
#-------------------------------------------------------------------------------
case "$1" in
*profile)
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
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
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

26
etc/envmng.d/imr Normal file
View File

@ -0,0 +1,26 @@
# $RCSfile: imr,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IMR (Interlinking Message Router) application
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export USR_IMRMGR=IMRMGR
export PWD_IMRMGR=SWAP
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

35
etc/envmng.d/java13-32 Normal file
View File

@ -0,0 +1,35 @@
# $RCSfile: java13-32,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM Java 1.3 (JDK/JRE) 32bits
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export JAVA_HOME=/usr/java131
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$JDK_HOME/bin:$JRE_HOME/bin
classpath=.
export PATH=$(envmng_path_add "$PATH" "$path")
export CLASSPATH=$(envmng_path_add "$CLASSPATH" "$classpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

35
etc/envmng.d/java13-64 Normal file
View File

@ -0,0 +1,35 @@
# $RCSfile: java13-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM Java 1.3 (JDK/JRE) 64bits
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export JAVA_HOME=/usr/java13_64
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$JDK_HOME/bin:$JRE_HOME/bin
classpath=.
export PATH=$(envmng_path_add "$PATH" "$path")
export CLASSPATH=$(envmng_path_add "$CLASSPATH" "$classpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

35
etc/envmng.d/java14-32 Normal file
View File

@ -0,0 +1,35 @@
# $RCSfile: java14-32,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM Java 1.4 (JDK/JRE) 32bits
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export JAVA_HOME=/usr/java14
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$JDK_HOME/bin:$JRE_HOME/bin
classpath=.
export PATH=$(envmng_path_add "$PATH" "$path")
export CLASSPATH=$(envmng_path_add "$CLASSPATH" "$classpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

35
etc/envmng.d/java14-64 Normal file
View File

@ -0,0 +1,35 @@
# $RCSfile: java14-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM Java 1.4 (JDK/JRE) 64bits
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export JAVA_HOME=/usr/java14_64
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$JDK_HOME/bin:$JRE_HOME/bin
classpath=.
export PATH=$(envmng_path_add "$PATH" "$path")
export CLASSPATH=$(envmng_path_add "$CLASSPATH" "$classpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

35
etc/envmng.d/java5-64 Normal file
View File

@ -0,0 +1,35 @@
# $RCSfile: java5-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM Java 5 (JDK/JRE) 64bits
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export JAVA_HOME=/usr/java5_64
export JDK_HOME=$JAVA_HOME
export JRE_HOME=$JAVA_HOME/jre
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$JDK_HOME/bin:$JRE_HOME/bin
classpath=.
export PATH=$(envmng_path_add "$PATH" "$path")
export CLASSPATH=$(envmng_path_add "$CLASSPATH" "$classpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

24
etc/envmng.d/migtt2 Normal file
View File

@ -0,0 +1,24 @@
# $RCSfile: migtt2,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: MigTT2 Project
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export PROJECT_ID=migtt2
export PROJECT_HOME=/home/$PROJECT_ID
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

32
etc/envmng.d/mqm-32 Normal file
View File

@ -0,0 +1,32 @@
# $RCSfile: mqm-32,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM MQSeries 32 bits
#-------------------------------------------------------------------------------
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

32
etc/envmng.d/mqm-64 Normal file
View File

@ -0,0 +1,32 @@
# $RCSfile: mqm-64,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM MQSeries 64 bits
#-------------------------------------------------------------------------------
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

46
etc/envmng.d/ora10 Normal file
View File

@ -0,0 +1,46 @@
# $RCSfile: ora10,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Oracle 10
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ORACLE_HOME=/home/logiciel/oracle/ora10204
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=french_france.utf8
export NLS_SORT=BINARY
export ORACLE_TERM=vt100
# export ORACLE_RM=Oracle_XA_9
export FS01=$PROJECT_HOME/${PROJECT_ID}1
export FS02=$PROJECT_HOME/${PROJECT_ID}2
export FS03=$PROJECT_HOME/${PROJECT_ID}3
export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$PROJECT_ID\")}")
export BASE=$ORACLE_HOME/dbs/sgadef${ORACLE_SID}.dbf
# export CONFIGORAIC=$PROJECT_HOME/appli/expl/oracle/ora_target/init
# export EXPLORAIC=$PROJECT_HOME/appli/expl/oracle/ora_target
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$ORACLE_HOME/bin
libpath=$ORACLE_HOME/lib32:$ORACLE_HOME/lib
export PATH=$(envmng_path_add "$PATH" "$path")
export LIBPATH=$(envmng_path_add "$LIBPATH" "$libpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

41
etc/envmng.d/ora817a Normal file
View File

@ -0,0 +1,41 @@
# $RCSfile: ora817a,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Oracle 8.17a
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ORACLE_HOME=/home/logiciel/oracle/ora817a
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=american_america.we8iso8859p1
export NLS_SORT=BINARY
export ORACLE_TERM=vt100
export ORACLE_RM=Oracle_XA_8
export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$TARGET_ID\")}")
export CONFIGORAIC=$TARGET_HOME/appli/expl/oracle/ora_target/init
export EXPLORAIC=$TARGET_HOME/appli/expl/oracle/ora_target
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$ORACLE_HOME/bin
export PATH=$(envmng_path_add "$PATH" "$path")
shlib_path=$ORACLE_HOME/lib
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
;;
*rc)
;;
*)
envmng_echo "$0: Invalid command: [$1] !"
;;
esac

41
etc/envmng.d/ora920a Normal file
View File

@ -0,0 +1,41 @@
# $RCSfile: ora920a,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Oracle 9.20a
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ORACLE_HOME=/home/logiciel/oracle/ora920a
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=american_america.we8iso8859p1
export NLS_SORT=BINARY
export ORACLE_TERM=vt100
export ORACLE_RM=Oracle_XA_9
export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$TARGET_ID\")}")
export CONFIGORAIC=$TARGET_HOME/appli/expl/oracle/ora_target/init
export EXPLORAIC=$TARGET_HOME/appli/expl/oracle/ora_target
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$ORACLE_HOME/bin
export PATH=$(envmng_path_add "$PATH" "$path")
shlib_path=$ORACLE_HOME/lib
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

28
etc/envmng.d/purify Normal file
View File

@ -0,0 +1,28 @@
# $RCSfile: purify,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Purify
#-------------------------------------------------------------------------------
path=/opt/rational/releases/PurifyPlusFamily.2003.06.00/hppa_hpux/bin
manpath=/opt/rational/releases/purify.hp.2003.06.00/man
case "$1" in
*profile)
export PATH=$(envmng_path_add "$PATH" "$path")
export MANPATH=$(envmng_path_add "$MANPATH" "$manpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

25
etc/envmng.d/pvcs Normal file
View File

@ -0,0 +1,25 @@
# $RCSfile: pvcs,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: PVCS
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export PVCS_BINDIR=/home/pvcs/vm/hpux11.00/bin
export PATH=$(envmng_path_add "$PATH" "$PVCS_BINDIR")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

47
etc/envmng.d/shell Normal file
View File

@ -0,0 +1,47 @@
# $RCSfile: shell,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Shell default configuration
#-------------------------------------------------------------------------------
case $BASH in
*bash)
shell=$BASH
;;
*)
shell=/usr/bin/ksh
;;
esac
case "$shell"-$1 in
*ksh-*profile)
export ENV=$envmng_prefix/etc/envmng_rc
;;
*bash-*profile)
export ENV=$envmng_prefix/etc/envmng_rc
;;
*ksh-*rc)
alias __A=
alias __B=
alias __C=
alias __D=
;;
*bash-*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

31
etc/envmng.d/snav Normal file
View File

@ -0,0 +1,31 @@
# $RCSfile: snav,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: SNAV Source Naviguator
#-------------------------------------------------------------------------------
path=/home/dtarget/sourcenav/bin
manpath=/home/dtarget/sourcenav/man
case "$1" in
*profile)
export PATH=$(envmng_path_add "$PATH" "$path")
export MANPATH=$(envmng_path_add "$MANPATH" "$manpath")
;;
*rc)
alias snav=snavigator
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

42
etc/envmng.d/tux80 Normal file
View File

@ -0,0 +1,42 @@
# $RCSfile: tux80,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Tuxedo 8.0
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export TUXDIR=/home/logiciel/tuxedo/tuxedo80
export EXPLTUX=$TARGET_HOME/appli/expl/tuxedo
export CONFIGTUX=$EXPLTUX/config
export TUXCONFIG=$CONFIGTUX/tuxconfig
export LOGTUX=$EXPLTUX/log
export FSCONFIG=$CONFIGTUX/tlog/TLOG
export FIELDTBLS=tpadm,evt_mib,std.fml,field.fml,Usysflds
export FIELDTBLS32=$FIELDTBLS
export FLDTBLDIR=$TUXDIR/udataobj
export FLDTBLDIR32=$FLDTBLDIR
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$TUXDIR/bin
export PATH=$(envmng_path_add "$PATH" "$path")
shlib_path=$TUXDIR/lib
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

105
etc/envmng.d/user Normal file
View File

@ -0,0 +1,105 @@
# $RCSfile: user,v $
# $Revision: 1.3 $
# $Name: $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: User configuration
#-------------------------------------------------------------------------------
case "$1" in
*profile)
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=.:~/bin
libpath=~/lib
manpath=~/man
export PATH=$(envmng_path_add "$PATH" "$path")
export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path")
export MANPATH=$(envmng_path_add "$MANPATH" "$man_path")
if $( which xemacs >/dev/null )
then
export EDITOR=xemacs
else
export EDITOR=vi
fi
if $( which less >/dev/null )
then
export PAGER=less
else
export PAGER=more
fi
set -o emacs
# set -o vi
;;
*rc)
tty_bold="$(tput bold)"
tty_off="$(tput rmso)"
tty_c1="$(tput setf 1)"
tty_c2="$(tput setf 2)"
tty_c3="$(tput setf 3)"
tty_c4="$(tput setf 4)"
tty_c5="$(tput setf 5)"
tty_c6="$(tput setf 6)"
tty_c7="$(tput setf 7)"
case $shell in
*bash)
tty_bold="\[${tty_bold}\]"
tty_off="\[${tty_off}\]"
tty_c1="\[${tty_c1}\]"
tty_c2="\[${tty_c2}\]"
tty_c3="\[${tty_c3}\]"
tty_c4="\[${tty_c4}\]"
tty_c5="\[${tty_c5}\]"
tty_c6="\[${tty_c6}\]"
tty_c7="\[${tty_c7}\]"
;;
*ksh)
;;
esac
# export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> "
# export PS1="${tty_c1}> ${tty_c3}"
export PS1="${tty_bold}${tty_c3}$(hostname)${tty_c1}(${tty_c4}\$LOGNAME${tty_c1})${tty_c3}[${tty_c6}\$ENVMNG_ID${tty_c3}]${tty_c2}\$PWD${tty_c3}>${tty_off} "
alias env-migtt2='envmng -S migtt2-gnu'
alias env-dtarget='envmng -S dtarget-gnu'
alias env-d2target='envmng -S d2target-gnu'
alias env-ksh='envmng --ksh'
alias env-bash='envmng --bash'
set -o emacs
# set -o vi
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac
if [ -f ~/.envmng_user ]
then
case "$1" in
*profile)
echo "envmng: profiling [user:$LOGNAME]..."
;;
*rc)
echo "envmng: rcing [user:$LOGNAME]..."
;;
esac
. ~/.envmng_user $1
fi
echo

33
etc/envmng.d/vac Normal file
View File

@ -0,0 +1,33 @@
# $RCSfile: vac,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 13:27:53 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM VAC C compiler
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export VAC_HOME=/usr/vac
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$VAC_HOME/bin
manpath=$VAC_HOME/man/%L
export PATH=$(envmng_path_add "$PATH" "$path")
export MANPATH=$(envmng_path_add "$MANPATH" "$manpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

53
etc/envmng.d/was6 Normal file
View File

@ -0,0 +1,53 @@
# $RCSfile: was6,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 17:05:52 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: IBM WAS 6
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export WAS_HOME=/home/logiciel/was/was6/AppServer
export ITP_LOC=$WAS_HOME/deploytool/itp
export PROFILE_REGISTRY_LOC=$WAS_HOME/properties/fsdb
export WAS_LIBPATH=$WAS_HOME/bin
export WAS_EXT_DIRS=$JAVA_HOME/lib:$WAS_HOME/classes:$WAS_HOME/lib:$WAS_HOME/installedChannels:$WAS_HOME/lib/ext:$WAS_HOME/web/help:$ITP_LOC/plugins/com.ibm.etools.ejbdeploy/runtime
export WAS_CLASSPATH=$WAS_HOME/properties:$WAS_HOME/lib/bootstrap.jar:$WAS_HOME/lib/j2ee.jar:$WAS_HOME/lib/lmproxy.jar:$WAS_HOME/lib/urlprotocols.jar
export DEFAULT_PROFILE_SCRIPT=$WAS_HOME/properties/fsdb/_was_profile_default/default.sh
export CONFIG_ROOT=$WAS_HOME/config
export SERVERSAS=-Dcom.ibm.CORBA.ConfigURL=file:$WAS_HOME/properties/sas.server.props
export CLIENT_CONNECTOR_INSTALL_ROOT=$WAS_HOME/installedConnectors
export WAS_LOGGING="-Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager -Djava.util.logging.configureByServer=true"
export QUALIFYNAMES=-qualifyHomeName
export CLOUDSCAPE_HOME=$WAS_HOME/cloudscape
export DERBY_HOME=$WAS_HOME/derby
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$WAS_HOME/bin:$WAS_HOME/../HTTPServer/bin
libpath=$WAS_HOME/../HTTPServer/lib
export PATH=$(envmng_path_add "$PATH" "$path")
export LIBPATH=$(envmng_path_add "$LIBPATH" "$libpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac

9
etc/envmng_display Normal file
View File

@ -0,0 +1,9 @@
# $RCSfile: envmng_display,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/12 17:59:03 $
# $Author: agibert $
agibert: 10.3.26.159 # Arnaud Gibert
azertyz: 10.3.26.201 # XXX
qwertyq: 10.3.26.110 # YYYY

17
etc/envmng_dtprofile Normal file
View File

@ -0,0 +1,17 @@
# $RCSfile: envmng_dtprofile,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/12 17:59:03 $
# $Author: agibert $
. /usr/local/bin/envmng --setid $1 norc
case $2 in
*bash)
export SHELL=/usr/local/bin/bash
;;
*)
export SHELL=/bin/ksh
;;
esac

19
etc/envmng_id Normal file
View File

@ -0,0 +1,19 @@
# $RCSfile: envmng_id,v $
# $Revision: 1.3 $
# $Name: $
# $Date: 2009/01/13 17:32:17 $
# $Author: agibert $
# HP/UX Example
dtarget: user:shell:imr:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system:gnu
dtarget-gnu: user:gnu:shell:imr:ora920a:tux80:mqm-64:dtarget:snav:pvcs:purify:hpux-64:hpux-system
d2target: user:shell:imr:ora817a:tux80:mqm-32:d2target:snav:pvcs:purify:hpux-32:hpux-system:gnu
d2target-gnu: user:gnu:shell:imr:ora817a:tux80: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

16
etc/envmng_profile Normal file
View File

@ -0,0 +1,16 @@
# $RCSfile: envmng_profile,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/12 17:59:03 $
# $Author: agibert $
case $2 in
*bash)
. /usr/local/bin/envmng --$2 $1
exit
;;
*)
. /usr/local/bin/envmng --$2 $1 norc
;;
esac

1
etc/envmng_protalias Normal file
View File

@ -0,0 +1 @@
envmng

18
etc/envmng_protvar Normal file
View File

@ -0,0 +1,18 @@
DISPLAY
DT
ENVMNG_ID
ENVMNG_LIST
MAIL
LOGNAME
HOME
PS1
PS2
PS3
PS4
PWD
SHELL
SHLVL
TERM
TZ
USER
_

16
etc/envmng_rc Normal file
View File

@ -0,0 +1,16 @@
# $RCSfile: envmng_rc,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/12 17:59:03 $
# $Author: agibert $
if [ "$(echo $- | /usr/bin/grep i)" != "" ]
then
if [ "$NEW_SHELL" != "" ]
then
export SHELL=$NEW_SHELL
. /usr/local/bin/envmng --setid $ENVMNG_ID
else
. /usr/local/bin/envmng --rc
fi
fi

8
etc/skel/.dtprofile Normal file
View File

@ -0,0 +1,8 @@
# $RCSfile: .dtprofile,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 09:35:01 $
# $Author: agibert $
. /usr/local/etc/envmng_dtprofile d2target-gnu bash
#. /usr/local/etc/envmng_dtprofile d2target-gnu ksh

10
etc/skel/.profile Normal file
View File

@ -0,0 +1,10 @@
# $RCSfile: .profile,v $
# $Revision: 1.1 $
# $Name: $
# $Date: 2009/01/13 09:35:01 $
# $Author: agibert $
clear
. /usr/local/etc/etc/envmng_profile d2target-gnu bash
#. /usr/local/etc/envmng_profile d2target ksh