From f00e6a9676154eaac8aed140c49bde76e52d6cee Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 28 Feb 2008 12:54:49 +0000 Subject: Fix where PERL5LIB is blank git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1936 f882894a-f735-0410-b71e-b25c423dba1c --- tools/build_perl_modules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/build_perl_modules b/tools/build_perl_modules index fb471459..4bdb81b1 100755 --- a/tools/build_perl_modules +++ b/tools/build_perl_modules @@ -74,7 +74,9 @@ foreach my $tarball (@tarballs) { chdir $dir or die "Can't chdir into $dir"; # Need to add this so this module is found for subsequent ones - $ENV{PERL5LIB}="$topdir/$dir/blib/lib:$ENV{PERL5LIB}"; + my @dirs = split(":", $ENV{PERL5LIB} || ""); + unshift @dirs, "$topdir/$dir/blib/lib"; + $ENV{PERL5LIB}=join(":", @dirs); if ($opts->{t}) { system("make test") == 0 or die "Can't run make test failed"; -- cgit v1.2.3-74-g34f1