#!/bin/env perl
########################################################################
# locate the first "etc' dir looking up the tree, store its path into
# $conf_dir.
#
# Note that if ./t/etc exists this can be used to put test-specific
# config files in ./t, keeping them separate from "real" configs.
########################################################################
use
File::Basename;
my
$base
= basename $0;
my
$path
=
"$conf_dir/$base.conf"
;
-e
$path
or
die
"Missing config file: '$path'"
;