X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=90a3d413d672502b61d398f7a362ac34b57c7b73;hb=aee4b66eb2152b7066ced4def46e0223eb1649b1;hp=a777e441d890c932091a82f95e0025426b394654;hpb=bdf60588bb1e35e284bdc02c43d0ffe691994465;p=dbsrgits%2FSQL-Translator.git diff --git a/Makefile.PL b/Makefile.PL index a777e44..90a3d41 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -63,8 +63,6 @@ for my $type (qw/requires recommends test_requires/) { } } -tests_recursive (); - install_script (qw| script/sqlt-diagram script/sqlt-diff @@ -76,7 +74,28 @@ install_script (qw| install_share(); -auto_provides(); +tests_recursive (); + + +# temporary(?) until I get around to fix M::I wrt xt/ +# needs Module::Install::AuthorTests +eval { + # this should not be necessary since the autoloader is supposed + # to work, but there were reports of it failing + require Module::Install::AuthorTests; + recursive_author_tests (qw/xt/); + 1; +} || do { + if ($Module::Install::AUTHOR) { + my $err = $@; + + # better error message in case of missing dep + eval { require Module::Install::AuthorTests } + || die "\nYou need Module::Install::AuthorTests installed to run this Makefile.PL in author mode:\n\n$@\n"; + + die $err; + } +}; auto_install();