At some point, we should be testing the Dirvish installation with a test script, which can test dirvish by doing an rsync from the server, to the server. This is commonly part of perl installation.
Right now, dirvish hardwires the $CONFDIR scalar to /etc/dirvish (or whatever the install script sets), and expects a file named /etc/dirvish.conf or /etc/dirvish/master.conf . This file will be user maintained, and should not be overwritten for a test. But the test should not depend on information from that file. What to do?
I suggest adding another command line option for Dirvish:--default-options
This will clean out the options set by the default $CONFDIR, allowing a test script to reset the information, before using --config=/some/test.conf to load a new configuration file.
So, why not just write over /all/ the options with --config ? Because it is difficult to set options to the dirvish default, as the new --config= file may not set every parameter.
Keith Lofstrom 2005 February 8
