# Copyright (c) 2002 XAO Inc. ############################################################################### use strict; use ExtUtils::MakeMaker; use ExtUtils::Manifest; 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"; } } chomp(my $user=`whoami`); print "User name: [$user] "; chomp($str=); if($str && $str=~/^\s*(.*?)\s*$/) { $user=$1; } my $pass=''; print "Password: [$pass] "; chomp($str=); if($str && $str=~/^\s*(.*?)\s*$/) { $pass=$1; } print <); if(!$str || lc($str)=~/y/) { open(F,">.config") || die "Can't open .config: $!\n"; print F < 'XAO Inc. http://xao.com/', 'ABSTRACT' => 'Fast MySQL driver for the XAO::FS', 'NAME' => 'XAO::DO::FS::Glue::MySQL', 'DISTNAME' => 'XAO-MySQL', 'VERSION_FROM' => 'MySQL.pm', 'PREREQ_PM' => { 'Error' => '0.15', 'Test::Unit' => '0.15', 'XAO::Base' => '1.05', 'XAO::FS' => '1.05', }, INC => $mysql_cflags, LIBS => $mysql_libs, ); sub MY::postamble { < README EOT }