Skip to content

Commit

Permalink
Refactor layout_perl a bit. Supports nested dirs now.
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Apr 19, 2014
1 parent 237e249 commit 4e9772a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cmd_stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,13 @@ layout_node() {
# See http://search.cpan.org/dist/local-lib/lib/local/lib.pm for more details
#
layout_perl() {
export LOCAL_LIB_DIR=$PWD/.direnv/perl5
export PERL_MB_OPT="--install_base $LOCAL_LIB_DIR"
export PERL_MM_OPT="INSTALL_BASE=$LOCAL_LIB_DIR"
export PERL5LIB="$LOCAL_LIB_DIR/lib/perl5"
export PERL_LOCAL_LIB_ROOT="$LOCAL_LIB_DIR:$PERL_LOCAL_LIB_ROOT";
PATH_add $LOCAL_LIB_DIR/bin
local libdir="$PWD/.direnv/perl5"
export LOCAL_LIB_DIR="$libdir"
export PERL_MB_OPT="--install_base '$libdir'"
export PERL_MM_OPT="INSTALL_BASE=$libdir"
path_add PERL5LIB "$libdir/lib/perl5"
path_add PERL_LOCAL_LIB_ROOT "$libdir"
PATH_add "$libdir/bin"
}
# Usage: layout python
Expand Down

0 comments on commit 4e9772a

Please sign in to comment.