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

tonvoon at users.sourceforge.net tonvoon at users.sourceforge.net
Thu Feb 28 13:54:49 CET 2008


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.




More information about the Commits mailing list