# 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 < 'XAO Catalogs', 'AUTHOR' => 'Andrew Maltsev, http://ejelta.com/xao/', 'NAME' => 'XAO::DO::Catalogs', 'VERSION_FROM' => 'Catalogs.pm', 'DISTNAME' => 'XAO-Catalogs', 'PREREQ_PM' => { 'XAO::Base' => '1.03', 'XAO::FS' => '1.03', 'XAO::Web' => '1.03', 'Test::Unit' => '0.14', }, 'EXE_FILES' => [ 'scripts/xao-ifilter-sample', 'scripts/xao-import-map', ], ); sub MY::postamble { < README install:: \$(PERL) -MXAO::PluginUtils=install_templates \\ -e'install_templates("MANIFEST",1)' \@echo \@echo "Please read the XAO::Catalogs manpage" \@echo "for usage instructions." \@echo \@echo "Good luck!" \@echo EOT }