summarylogtreecommitdiffstats
path: root/perlbin.sh
diff options
context:
space:
mode:
authorTucker Boniface2018-08-13 11:44:11 -0700
committerTucker Boniface2018-08-13 11:45:43 -0700
commit3dfc92d6f8063027738b7fb6f4130aff57d18692 (patch)
treef51dfaa9ecb16d1da59d49c60d32ef271a1e8c63 /perlbin.sh
downloadaur-3dfc92d6f8063027738b7fb6f4130aff57d18692.tar.gz
Initial commit
Diffstat (limited to 'perlbin.sh')
-rwxr-xr-xperlbin.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/perlbin.sh b/perlbin.sh
new file mode 100755
index 000000000000..7e38f2047a50
--- /dev/null
+++ b/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
+