[interchange] Support for multiple lib paths from ENV

Mark Johnson <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit cb13310767dd80dc2f3448a57ee6b529cc691f13
Author: Mark Johnson <[email protected]>
Date:   Thu May 30 11:27:28 2013 -0400

    Support for multiple lib paths from ENV
    
    * Expand the capacity of INTERCHANGE_INSTALLPRIVLIB and
      INTERCHANGE_INSTALLARCHLIB to hold colon-separated list of
      paths to add to @INC.

 scripts/interchange.PL |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/interchange.PL b/scripts/interchange.PL
index 0d90fb9..c49bd87 100644
--- a/scripts/interchange.PL
+++ b/scripts/interchange.PL
@@ -36,7 +36,7 @@ BEGIN {
 	$| = 1;
 
 	if ($ENV{INTERCHANGE_INSTALLPRIVLIB}) {
-		unshift @INC, $ENV{INTERCHANGE_INSTALLPRIVLIB};
+		unshift @INC, split /:+/, $ENV{INTERCHANGE_INSTALLPRIVLIB};
 	}
 	else {
 		unshift @INC, '/usr/local/interchange/lib';
@@ -44,7 +44,7 @@ BEGIN {
 	}
 
 	if ($ENV{INTERCHANGE_INSTALLARCHLIB}) {
-		unshift @INC, $ENV{INTERCHANGE_INSTALLARCHLIB};
+		unshift @INC, split /:+/, $ENV{INTERCHANGE_INSTALLARCHLIB};
 	}
 	else {
 		unshift @INC, '/usr/local/interchange';
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.