From: <sco...@us...> - 2003-12-03 21:46:14
|
Update of /cvsroot/gmod/schema/chado In directory sc8-pr-cvs1:/tmp/cvs-serv853 Modified Files: Makefile.PL Log Message: set default values of parameters used by Makefile.PL = $ENV{} variables Index: Makefile.PL =================================================================== RCS file: /cvsroot/gmod/schema/chado/Makefile.PL,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Makefile.PL 3 Dec 2003 18:22:49 -0000 1.31 --- Makefile.PL 3 Dec 2003 21:46:11 -0000 1.32 *************** *** 19,41 **** use Template; my %args = ( DBDRIVER => { ! default => 'PostgreSQL', }, DBNAME => { ! default => 'chado', }, DBUSER => { ! default => $ENV{'USER'} || getlogin() || scalar getpwuid( $< ) }, DBPASS => { ! default => '', }, DBHOST => { ! default => 'localhost', }, DBPORT => { ! default => '', ! }, ); --- 19,44 ---- use Template; + die "*******************************************************\n\$GMOD_ROOT not detected\nPlease read install docs and set required environment variables\n*******************************************************\n" + unless $ENV{'GMOD_ROOT'}; + my %args = ( DBDRIVER => { ! default => 'PostgreSQL' }, DBNAME => { ! default => $ENV{'CHADO_DB_NAME'} }, DBUSER => { ! default => $ENV{'CHADO_DB_USERNAME'} }, DBPASS => { ! default => $ENV{'CHADO_DB_PASSWORD'} }, DBHOST => { ! default => $ENV{'CHADO_DB_HOST'} }, DBPORT => { ! default => $ENV{'CHADO_DB_PORT'} ! } ); |