# Copyright (c) 1997-2002 XAO Inc. ############################################################################### use ExtUtils::MakeMaker; use ExtUtils::Manifest; ## # Reading configuration # my %d; if(open(F,'.config')) { local($/); my $t=; close(F); eval $t; } while(!$d{test_dsn}) { print <); if($str) { if($str =~ /^\s*(OS:(\w+):(\w+)(;.*?)?)\s*$/) { $dsn=$1; } else { die "Incorrect DSN entered!\n"; } } my $user=''; my $pass=''; my $confirm='n'; if($dsn eq 'none') { $confirm='y'; print <); if($str && $str=~/^\s*(.*?)\s*$/) { $user=$1; } print "Password: [$pass] "; chomp($str=); if($str && $str=~/^\s*(.*?)\s*$/) { $pass=$1; } print <); } if(!$confirm || lc($confirm)=~/y/) { open(F,">.config") || die "Can't open .config: $!\n"; print F < 'Andrew Maltsev, http://ejelta.com/xao/', 'ABSTRACT' => 'XAO::Web plugin for managing dynamic content', 'NAME' => 'XAO::DO::Web::Content', 'DISTNAME' => 'XAO-Content', 'VERSION_FROM' => 'Content.pm', 'PREREQ_PM' => { 'XAO::FS' => '1.03', 'XAO::Web' => '1.03', } ); sub MY::postamble { < README install:: \$(PERL) -MXAO::PluginUtils=install_templates \\ -e'install_templates("MANIFEST",1)' \@echo \@echo "Please read the XAO::DO::Web::Content manpage" \@echo "for usage instructions." \@echo \@echo "Good luck!" \@echo EOT }