summaryrefslogtreecommitdiffstats
path: root/abs/core/perl/perlbin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/perl/perlbin.sh')
-rwxr-xr-xabs/core/perl/perlbin.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/abs/core/perl/perlbin.sh b/abs/core/perl/perlbin.sh
index 49aeb2d..665d5a8 100755
--- a/abs/core/perl/perlbin.sh
+++ b/abs/core/perl/perlbin.sh
@@ -1,2 +1,19 @@
# Set path to perl scripts.
-export PATH="${PATH}:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core"
+# Remove the perlbin dirs in the next release.
+
+# Add dirs to path if they exist.
+[ -d /usr/lib/perl5/site_perl/bin ] &&
+ PATH=$PATH:/usr/lib/perl5/site_perl/bin
+[ -d /usr/bin/perlbin/site ] &&
+ PATH=$PATH:/usr/bin/perlbin/site
+[ -d /usr/lib/perl5/vendor_perl/bin ] &&
+ PATH=$PATH:/usr/lib/perl5/vendor_perl/bin
+[ -d /usr/bin/perlbin/vendor ] &&
+ PATH=$PATH:/usr/bin/perlbin/vendor
+[ -d /usr/lib/perl5/core_perl/bin ] &&
+ PATH=$PATH:/usr/lib/perl5/core_perl/bin
+export PATH
+
+# If you have modules in non-standard directories you can add them here.
+#export PERLLIB=dir1:dir2
+