diff options
author | Struan Donald <struan@exo.org.uk> | 2012-02-02 16:31:39 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-02-02 16:31:39 +0000 |
commit | a27d506f2f593bd64f5c744856dacac4e1f52420 (patch) | |
tree | a3ec7dff4bb200e253b4b7b7530490a6fa94d786 /setenv.pl | |
parent | bd1be5d99f2c51f9fe2eb7751392b4b44fd74edc (diff) | |
parent | b0e3c5065d86248e5d3d8bf9848193730ef60f1c (diff) |
Merge branch 'packaging'
Conflicts:
.gitignore
Diffstat (limited to 'setenv.pl')
-rwxr-xr-x | setenv.pl | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -3,8 +3,6 @@ use strict; use warnings; -use List::MoreUtils 'uniq'; - my $root; BEGIN { # add the local perllibs too @@ -17,11 +15,10 @@ BEGIN { # add the local perllibs too # Set the environment for the FixMyStreet project # Add the lib/perl5 in perl-external so that we can load local::lib from there -use lib "$root/perl-external/lib/perl5"; +use lib "$root/local/lib/perl5"; # Add the perl-external dirs properly using local::lib -use local::lib "$root/perl-external"; -use local::lib "$root/perl-external/local-lib"; +use local::lib "$root/local"; use lib "$root/commonlib/perllib"; use lib "$root/perllib"; @@ -29,6 +26,10 @@ for ( "$root/commonlib/perllib", "$root/perllib" ) { $ENV{PERL5LIB} = "$_:$ENV{PERL5LIB}"; } +# need to make sure we fetch this after our libs are in INC as some +# vendor provided versions are old an incompatible with Moose +use List::MoreUtils 'uniq'; + # also set the path to our scripts etc $ENV{PATH} = join ':', uniq "$root/bin", split( m/:/, $ENV{PATH} ); |