#!/usr/bin/perl ##--------------------------------------------------------------------------## ## File: ## $Id: config-check,v 1.1 2002/09/20 02:56:31 ehood Exp $ ## Description: ## Dump mharc config to stdout. ##--------------------------------------------------------------------------## ## Copyright (C) 2002 Earl Hood ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA ##--------------------------------------------------------------------------## package MHArc::config_dump; ##--------------------------------------------------------------------------## # BEGIN { die qq/CGI use FORBIDDEN!\n/ if (defined($ENV{'GATEWAY_INTERFACE'})); } my $Dir; BEGIN { $Dir = `dirname $0`; chomp $Dir; } use lib "$Dir/../lib"; # Add relative lib to search path # ##--------------------------------------------------------------------------## use MHArc::Config; MAIN: { my $config = load_config(); $config->dump_config(\*STDOUT); } sub load_config { MHArc::Config->load("$Dir/../lib/config.sh"); } ##---------------------------------------------------------------------------## __END__ =head1 NAME config-check - Check mharc configuration file =head1 SYNOPSIS config-check =head1 DESCRIPTION This programs prints out the expanded variable values defined in C to standard output. =head1 FILES =over =item C/lib/config.sh> Main configuration file for mharc. =back =head1 VERSION $Id: config-check,v 1.1 2002/09/20 02:56:31 ehood Exp $ =head1 AUTHOR Earl Hood, earl@earlhood.com This program is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mharc distribution. =cut