summaryrefslogtreecommitdiffstats
path: root/abs/core/perl/perlbin.sh
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-04 16:31:52 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-04 16:31:52 (GMT)
commit32998932480748b76dc778c8d15eca350c47ec31 (patch)
tree85cdacc15d3fe6c4720acb39ad4de12adea15bad /abs/core/perl/perlbin.sh
parent3fba8949c7a07ba1ea35e379f625f32b5b0692cf (diff)
downloadlinhes_pkgbuild-32998932480748b76dc778c8d15eca350c47ec31.zip
linhes_pkgbuild-32998932480748b76dc778c8d15eca350c47ec31.tar.gz
linhes_pkgbuild-32998932480748b76dc778c8d15eca350c47ec31.tar.bz2
perl:update to latest
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
+