Fix building on perls with no . in @INC
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 01_adjust_INC.pl
1 die "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
5 require FindBin;
6 unshift @INC, "$FindBin::Bin/lib";
7
8 # adjust ENV for $AUTHOR system() calls
9 require Config;
10 $ENV{PERL5LIB} = join ($Config::Config{path_sep}, @INC);
11
12 # keep the Makefile.PL eval happy
13 1;