mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhopt.pl,2.31,2.32

2002-10-19 20:49:31
Update of /cvsroot/mhonarc/mhonarc/MHonArc/lib
In directory subversions:/tmp/cvs-serv727/lib

Modified Files:
	mhopt.pl 
Log Message:
* DBFILE resource can now be set to an absolute pathname.  This
  allows the database file to be located in a separate location than
  in the archive directory.  If not an absolute pathname, then
  value is treated relative to OUTDIR.


Index: mhopt.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/mhopt.pl,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -r2.31 -r2.32
*** mhopt.pl	4 Sep 2002 04:09:30 -0000	2.31
--- mhopt.pl	20 Oct 2002 03:49:22 -0000	2.32
***************
*** 350,357 ****
      ## Check if we need to access database file
      if ($ReadDB) {
! 	$DBFILE = ".mail2html.db"
! 	    unless (-e join($DIRSEP, $OUTDIR, $DBFILE)) ||
! 		   (!-e join($DIRSEP, $OUTDIR, ".mail2html.db"));
! 	$DBPathName = join($DIRSEP, $OUTDIR, $DBFILE);
  
  	## Invoke preload callback
--- 350,355 ----
      ## Check if we need to access database file
      if ($ReadDB) {
! 	$DBPathName = OSis_absolute_path($DBFILE) ?
! 	    $DBFILE : join($DIRSEP, $OUTDIR, $DBFILE);
  
  	## Invoke preload callback
***************
*** 460,464 ****
      ## Get other command-line options
      $DBFILE	= $opt{'dbfile'}     if $opt{'dbfile'}; # Override db
!     $DBPathName = join($DIRSEP, $OUTDIR, $DBFILE);
  
      $DOCURL	= $opt{'docurl'}     if $opt{'docurl'};
--- 458,463 ----
      ## Get other command-line options
      $DBFILE	= $opt{'dbfile'}     if $opt{'dbfile'}; # Override db
!     $DBPathName = OSis_absolute_path($DBFILE) ?
! 	$DBFILE : join($DIRSEP, $OUTDIR, $DBFILE);
  
      $DOCURL	= $opt{'docurl'}     if $opt{'docurl'};

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV