You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-local-lib/SOURCES/perl-homedir.csh

21 lines
599 B

# invoke local::lib
# default -- invoke local::lib for all users
setenv PERL_HOMEDIR 1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
if (-f /etc/sysconfig/perl-homedir) then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' /etc/sysconfig/perl-homedir`
endif
if (-f "$HOME/.perl-homedir") then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' "$HOME/.perl-homedir"`
endif
alias perlll 'eval "`env SHELL=csh perl -Mlocal::lib`"'
# if system default
if ("x$PERL_HOMEDIR" == "x1") then
eval "`env SHELL=csh perl -Mlocal::lib`"
endif