Compare commits
No commits in common. "master" and "envmng-1_0_0" have entirely different histories.
master
...
envmng-1_0
154
ReadMe.txt
154
ReadMe.txt
@ -1,159 +1,11 @@
|
|||||||
# $RCSfile: ReadMe.txt,v $
|
# $RCSfile: ReadMe.txt,v $
|
||||||
# $Revision: 1.4 $
|
# $Revision: 1.1 $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
# $Date: 2009/01/13 17:30:14 $
|
# $Date: 2009/01/12 15:36:39 $
|
||||||
# $Author: agibert $
|
# $Author: agibert $
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Welcome to EnvMng (Unix shell Environment Manager) !
|
This first release has been lost... RIP !
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
@ -1,41 +1,13 @@
|
|||||||
# $RCSfile: ReleaseNotes.txt,v $
|
# $RCSfile: ReleaseNotes.txt,v $
|
||||||
# $Revision: 1.4 $
|
# $Revision: 1.1 $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
# $Date: 2009/01/13 17:31:53 $
|
# $Date: 2009/01/12 15:36:39 $
|
||||||
# $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
322
bin/envmng
@ -1,322 +0,0 @@
|
|||||||
# $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
|
|
@ -1,23 +0,0 @@
|
|||||||
# $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
|
|
@ -1,23 +0,0 @@
|
|||||||
# $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
|
|
@ -1,47 +0,0 @@
|
|||||||
# $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
|
|
@ -1,24 +0,0 @@
|
|||||||
# $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
|
|
@ -1,24 +0,0 @@
|
|||||||
# $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
|
|
@ -1,22 +0,0 @@
|
|||||||
# $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
|
|
@ -1,41 +0,0 @@
|
|||||||
# $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
|
|
@ -1,23 +0,0 @@
|
|||||||
# $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
|
|
@ -1,23 +0,0 @@
|
|||||||
# $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
|
|
@ -1,51 +0,0 @@
|
|||||||
# $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
|
|
@ -1,26 +0,0 @@
|
|||||||
# $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
|
|
@ -1,35 +0,0 @@
|
|||||||
# $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
|
|
@ -1,35 +0,0 @@
|
|||||||
# $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
|
|
@ -1,35 +0,0 @@
|
|||||||
# $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
|
|
@ -1,35 +0,0 @@
|
|||||||
# $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
|
|
@ -1,35 +0,0 @@
|
|||||||
# $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
|
|
@ -1,24 +0,0 @@
|
|||||||
# $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
|
|
@ -1,32 +0,0 @@
|
|||||||
# $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
|
|
@ -1,32 +0,0 @@
|
|||||||
# $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
|
|
@ -1,46 +0,0 @@
|
|||||||
# $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
|
|
@ -1,41 +0,0 @@
|
|||||||
# $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
|
|
@ -1,41 +0,0 @@
|
|||||||
# $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
|
|
@ -1,28 +0,0 @@
|
|||||||
# $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
|
|
@ -1,25 +0,0 @@
|
|||||||
# $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
|
|
@ -1,47 +0,0 @@
|
|||||||
# $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
|
|
@ -1,31 +0,0 @@
|
|||||||
# $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
|
|
@ -1,42 +0,0 @@
|
|||||||
# $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
|
|
@ -1,105 +0,0 @@
|
|||||||
# $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
|
|
@ -1,33 +0,0 @@
|
|||||||
# $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
|
|
@ -1,53 +0,0 @@
|
|||||||
# $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
|
|
@ -1,9 +0,0 @@
|
|||||||
# $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
|
|
@ -1,17 +0,0 @@
|
|||||||
# $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
|
|
@ -1,19 +0,0 @@
|
|||||||
# $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
|
|
@ -1,16 +0,0 @@
|
|||||||
# $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 +0,0 @@
|
|||||||
envmng
|
|
@ -1,18 +0,0 @@
|
|||||||
DISPLAY
|
|
||||||
DT
|
|
||||||
ENVMNG_ID
|
|
||||||
ENVMNG_LIST
|
|
||||||
MAIL
|
|
||||||
LOGNAME
|
|
||||||
HOME
|
|
||||||
PS1
|
|
||||||
PS2
|
|
||||||
PS3
|
|
||||||
PS4
|
|
||||||
PWD
|
|
||||||
SHELL
|
|
||||||
SHLVL
|
|
||||||
TERM
|
|
||||||
TZ
|
|
||||||
USER
|
|
||||||
_
|
|
@ -1,16 +0,0 @@
|
|||||||
# $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
|
|
@ -1,8 +0,0 @@
|
|||||||
# $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
|
|
@ -1,10 +0,0 @@
|
|||||||
# $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
|
|
Loading…
Reference in New Issue
Block a user