SF.net SVN: nagiosplug: [1936] nagiosplug/trunk/tools/build_perl_modules

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 1936
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1936&view=rev
Author:   tonvoon
Date:     2008-02-28 04:54:49 -0800 (Thu, 28 Feb 2008)

Log Message:
-----------
Fix where PERL5LIB is blank

Modified Paths:
--------------
    nagiosplug/trunk/tools/build_perl_modules

Modified: nagiosplug/trunk/tools/build_perl_modules
===================================================================
--- nagiosplug/trunk/tools/build_perl_modules	2008-02-18 11:23:06 UTC (rev 1935)
+++ nagiosplug/trunk/tools/build_perl_modules	2008-02-28 12:54:49 UTC (rev 1936)
@@ -74,7 +74,9 @@
 	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";


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.