diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-02-28 12:54:49 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-02-28 12:54:49 +0000 |
commit | f00e6a9676154eaac8aed140c49bde76e52d6cee (patch) | |
tree | ae4f6f9f87090c5f08820d0025c36a1d8e31c2b2 | |
parent | 0eaefa2746ccbc99db7bbdda32de79f6f818c132 (diff) | |
download | monitoring-plugins-f00e6a9676154eaac8aed140c49bde76e52d6cee.tar.gz |
Fix where PERL5LIB is blank
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1936 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | tools/build_perl_modules | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
74 | chdir $dir or die "Can't chdir into $dir"; | 74 | chdir $dir or die "Can't chdir into $dir"; |
75 | 75 | ||
76 | # Need to add this so this module is found for subsequent ones | 76 | # Need to add this so this module is found for subsequent ones |
77 | $ENV{PERL5LIB}="$topdir/$dir/blib/lib:$ENV{PERL5LIB}"; | 77 | my @dirs = split(":", $ENV{PERL5LIB} || ""); |
78 | unshift @dirs, "$topdir/$dir/blib/lib"; | ||
79 | $ENV{PERL5LIB}=join(":", @dirs); | ||
78 | 80 | ||
79 | if ($opts->{t}) { | 81 | if ($opts->{t}) { |
80 | system("make test") == 0 or die "Can't run make test failed"; | 82 | system("make test") == 0 or die "Can't run make test failed"; |