perl-local-lib/perl-homedir.csh

21 lines
571 B
Tcsh
Raw Normal View History

2010-01-05 02:29:12 +00:00
# invoke local::lib
# default -- invoke local::lib for all users
setenv PERL_HOMEDIR 1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
2012-08-20 09:27:24 +00:00
if (-f /etc/sysconfig/perl-homedir) then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' /etc/sysconfig/perl-homedir`
2012-08-20 09:27:24 +00:00
endif
if (-f "$HOME/.perl-homedir") then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' "$HOME/.perl-homedir"`
2012-08-20 09:27:24 +00:00
endif
2010-01-05 02:29:12 +00:00
2013-11-21 12:38:40 +00:00
alias perlll 'eval "`perl -Mlocal::lib`"'
2010-01-05 02:29:12 +00:00
# if system default
2012-08-20 09:27:24 +00:00
if ("x$PERL_HOMEDIR" == "x1") then
2013-11-21 12:38:40 +00:00
eval "`perl -Mlocal::lib`"
2012-08-20 09:27:24 +00:00
endif
2010-01-05 02:29:12 +00:00