summaryrefslogtreecommitdiff
path: root/testing/perl/perlbin.sh
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-02 10:50:51 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-02 10:50:51 -0300
commit901d121a0b559ed0c285f6cf7daebd0e0081a327 (patch)
tree814faf33f5ac64cc28c07e45f56c240c93605746 /testing/perl/perlbin.sh
parentd0fae3a9b2c0de7490049611767dc2a3d6e94899 (diff)
parente7b9c9697e6a50c3b9e78941fa95ba11c716d238 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: testing/mesa/PKGBUILD
Diffstat (limited to 'testing/perl/perlbin.sh')
-rwxr-xr-xtesting/perl/perlbin.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/perl/perlbin.sh b/testing/perl/perlbin.sh
new file mode 100755
index 000000000..09811a8b4
--- /dev/null
+++ b/testing/perl/perlbin.sh
@@ -0,0 +1,23 @@
+# Set path to perl scriptdirs if they exist
+# https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_Scripts
+# Added /usr/bin/*_perl dirs for scripts
+# Remove /usr/lib/perl5/*_perl/bin in next release
+
+[ -d /usr/bin/site_perl ] &&
+ PATH=$PATH:/usr/bin/site_perl
+[ -d /usr/lib/perl5/site_perl/bin ] &&
+ PATH=$PATH:/usr/lib/perl5/site_perl/bin
+
+[ -d /usr/bin/vendor_perl ] &&
+ PATH=$PATH:/usr/bin/vendor_perl
+[ -d /usr/lib/perl5/vendor_perl/bin ] &&
+ PATH=$PATH:/usr/lib/perl5/vendor_perl/bin
+
+[ -d /usr/bin/core_perl ] &&
+ PATH=$PATH:/usr/bin/core_perl
+
+export PATH
+
+# If you have modules in non-standard directories you can add them here.
+#export PERLLIB=dir1:dir2
+