Update of /cvsroot/cogs/ensupdate
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13578
Modified Files:
setup.pl
Log Message:
Bug fixes
Index: setup.pl
===================================================================
RCS file: /cvsroot/cogs/ensupdate/setup.pl,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** setup.pl 1 Feb 2006 20:37:40 -0000 1.10
--- setup.pl 9 Jan 2008 20:16:45 -0000 1.11
***************
*** 2,6 ****
use DBI;
! my $envchk=(($ENV{ENS_HOST})&&($ENV{ENS_ADMIN})&&($ENV{ENS_PASS})&&$ENV{ENS_DATA});
unless ($envchk) {
print "The environment is not set\n";
--- 2,7 ----
use DBI;
! my
! $envchk=(($ENV{ENS_HOST})&&($ENV{ENS_ADMIN})&&($ENV{ENS_PASS})&&($ENV{ENS_DATA}));
unless ($envchk) {
print "The environment is not set\n";
***************
*** 28,37 ****
chomp $shell;
$shcom=$shell==1?'export':'setenv';
! print "To set your environment add this to your ~/.tcshrc file:
! $shcom ENS_HOST $host
! $shcom ENS_ADMIN $admin
! $shcom ENS_PASS $pass
! $shcom ENS_DATA $ddir
restart your shell
then run this script again\n";
--- 29,39 ----
chomp $shell;
$shcom=$shell==1?'export':'setenv';
+ $shsep=$shell==1?'=':'';
! print "To set your environment add this to your ~/.tcshrc or ~/.bashrc file:
! $shcom ENS_HOST $shsep $host
! $shcom ENS_ADMIN $shsep $admin
! $shcom ENS_PASS $shsep $pass
! $shcom ENS_DATA $shsep $ddir
restart your shell
then run this script again\n";
|