summaryrefslogtreecommitdiff
path: root/testing/perl/perlbin.sh
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-03 23:10:20 +0000
committerroot <root@rshg047.dnsready.net>2011-07-03 23:10:20 +0000
commit067b127a853780b2b4ae7236dcdaaf72396dfa86 (patch)
treeec55d0d4115d7c9fc0eb9e1a82a2553f4e0cd3aa /testing/perl/perlbin.sh
parent1732308adb7885b00fc388f978e65b3ad15aa067 (diff)
Sun Jul 3 23:10:20 UTC 2011
Diffstat (limited to 'testing/perl/perlbin.sh')
-rwxr-xr-xtesting/perl/perlbin.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/perl/perlbin.sh b/testing/perl/perlbin.sh
new file mode 100755
index 000000000..20f830436
--- /dev/null
+++ b/testing/perl/perlbin.sh
@@ -0,0 +1,18 @@
+# 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
+