2 ##--------------------------------------------------------------------------##
4 ## $Id: config-check,v 1.1 2002/09/20 02:56:31 ehood Exp $
6 ## Dump mharc config to stdout.
7 ##--------------------------------------------------------------------------##
8 ## Copyright (C) 2002 Earl Hood <earl@earlhood.com>
10 ## This program is free software; you can redistribute it and/or modify
11 ## it under the terms of the GNU General Public License as published by
12 ## the Free Software Foundation; either version 2 of the License, or
13 ## (at your option) any later version.
15 ## This program is distributed in the hope that it will be useful,
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ## GNU General Public License for more details.
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; if not, write to the Free Software
22 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 ##--------------------------------------------------------------------------##
26 package MHArc
::config_dump
;
28 ##--------------------------------------------------------------------------##
30 BEGIN { die qq/CGI use FORBIDDEN!\n/ if (defined($ENV{'GATEWAY_INTERFACE'})); }
31 my $Dir; BEGIN { $Dir = `dirname $0`; chomp $Dir; }
32 use lib
"$Dir/../lib"; # Add relative lib to search path
34 ##--------------------------------------------------------------------------##
39 my $config = load_config
();
40 $config->dump_config(\
*STDOUT
);
44 MHArc
::Config
->load("$Dir/../lib/config.sh");
47 ##---------------------------------------------------------------------------##
52 config-check - Check mharc configuration file
60 This programs prints out the expanded variable values defined
61 in C<config.sh> to standard output.
67 =item C<I<mharc-root>/lib/config.sh>
69 Main configuration file for mharc.
75 $Id: config-check,v 1.1 2002/09/20 02:56:31 ehood Exp $
79 Earl Hood, earl@earlhood.com
81 This program is part of the mharc archiving system and comes with
82 ABSOLUTELY NO WARRANTY and may be copied only under the terms of
83 the GNU General Public License, which may be found in the mharc