- Minor cleanup,

- Use $Name CVS tag in version print out.
This commit is contained in:
agibert 2009-01-13 14:07:53 +00:00
parent 2d810ded10
commit f6ac4f0426

View File

@ -1,7 +1,7 @@
# $RCS envmng,v $ # $RCS envmng,v $
# $Revision: 1.2 $ # $Revision: 1.3 $
# $Name: $ # $Name: $
# $Date: 2009/01/13 13:27:53 $ # $Date: 2009/01/13 14:07:53 $
# $Author: agibert $ # $Author: agibert $
# envmng - Unix shell Environment Manager # envmng - Unix shell Environment Manager
@ -27,6 +27,12 @@ EnvMng_Cmd="$1"
EnvMng_Env="$2" EnvMng_Env="$2"
EnvMng_Opt="$3" EnvMng_Opt="$3"
#-------------------------------------------------------------------------------
# Installation Configuration
#-------------------------------------------------------------------------------
envmng_prefix=/usr/local/bin envmng_prefix=/usr/local/bin
envmng_d=$envmng_prefix/etc/envmng.d envmng_d=$envmng_prefix/etc/envmng.d
envmng_id=$envmng_prefix/etc/envmng_id envmng_id=$envmng_prefix/etc/envmng_id
@ -34,6 +40,12 @@ envmng_protvar=$envmng_prefix/etc/envmng_protvar
envmng_protalias=$envmng_prefix/etc/envmng_protalias envmng_protalias=$envmng_prefix/etc/envmng_protalias
envmng_display=$envmng_prefix/etc/envmng_display envmng_display=$envmng_prefix/etc/envmng_display
#-------------------------------------------------------------------------------
# System configuration
#-------------------------------------------------------------------------------
basename=/bin/basename basename=/bin/basename
env=/bin/env env=/bin/env
sed=/bin/sed sed=/bin/sed
@ -42,6 +54,8 @@ printf=/bin/printf
alias envmng=". $envmng_prefix/bin/envmng" alias envmng=". $envmng_prefix/bin/envmng"
#-------------------------------------------------------------------------------
envmng_rlist() envmng_rlist()
@ -297,7 +311,8 @@ case "$EnvMng_Cmd" in
;; ;;
-V | --version) -V | --version)
echo "envmng V 1.2" echo -n "envmng V "
echo "$Name: $" | sed -e 's/^[^-]*-//' -e 's/ .*//' -e 's/_/./g'
;; ;;
*) *)