Restore ability to handle underdefined root (t/prefetch/incomplete.t)
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 01_adjust_INC.pl
CommitLineData
fc4b0448 1die "Makefile.PL does not seem to have been executed from the root distdir\n"
2 unless -d 'lib';
3
4# $FindBin::Bin is the location of the inluding Makefile.PL, not this file
5require FindBin;
6unshift @INC, "$FindBin::Bin/lib";
7
8# adjust ENV for $AUTHOR system() calls
9require Config;
10$ENV{PERL5LIB} = join ($Config::Config{path_sep}, @INC);
11
12# keep the Makefile.PL eval happy
131;