Created
May 29, 2012 20:01
-
-
Save preaction/2830370 to your computer and use it in GitHub Desktop.
Update perl5lib with all lib/blib dirs in a directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set the right PERL5LIB | |
| for LIBDIR in $HOME/git/*; do | |
| if [[ -e $LIBDIR/blib/lib ]]; then | |
| PERL5LIB=$LIBDIR/blib/lib:$LIBDIR/blib/arch:$PERL5LIB | |
| fi | |
| # lib dir outranks blib dir, though this might cause problems with XS modules | |
| if [[ -e $LIBDIR/lib ]]; then | |
| PERL5LIB=$LIBDIR/lib:$PERL5LIB | |
| fi | |
| done | |
| export PERL5LIB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment