… | |
… | |
58 | [ -r ~/.staticperlrc ] && . ~/.staticperlrc |
58 | [ -r ~/.staticperlrc ] && . ~/.staticperlrc |
59 | [ -r "$STATICPERL/rc" ] && . "$STATICPERL/rc" |
59 | [ -r "$STATICPERL/rc" ] && . "$STATICPERL/rc" |
60 | |
60 | |
61 | ############################################################################# |
61 | ############################################################################# |
62 | # support |
62 | # support |
|
|
63 | |
|
|
64 | unset PERL5OPT PERL5LIB PERLLIB PERL_UNICODE PERLIO_DEBUG |
|
|
65 | export LC_ALL=C # just to be on the safe side |
63 | |
66 | |
64 | # set version in a way that Makefile.PL can extract |
67 | # set version in a way that Makefile.PL can extract |
65 | VERSION=VERSION; eval \ |
68 | VERSION=VERSION; eval \ |
66 | $VERSION=0.9 |
69 | $VERSION=0.9 |
67 | |
70 | |
… | |
… | |
391 | } |
394 | } |
392 | |
395 | |
393 | bundle() { |
396 | bundle() { |
394 | catmkbundle >"$MKBUNDLE~" || fatal "$MKBUNDLE~: cannot create" |
397 | catmkbundle >"$MKBUNDLE~" || fatal "$MKBUNDLE~: cannot create" |
395 | chmod 755 "$MKBUNDLE~" && mv "$MKBUNDLE~" "$MKBUNDLE" |
398 | chmod 755 "$MKBUNDLE~" && mv "$MKBUNDLE~" "$MKBUNDLE" |
|
|
399 | CACHE="$STATICPERL/cache" |
|
|
400 | mkdir -p "$CACHE" |
396 | "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" "$@" |
401 | "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" --cache "$CACHE" "$@" |
397 | } |
402 | } |
398 | |
403 | |
399 | if [ $# -gt 0 ]; then |
404 | if [ $# -gt 0 ]; then |
400 | while [ $# -gt 0 ]; do |
405 | while [ $# -gt 0 ]; do |
401 | mkdir -p "$STATICPERL" || fatal "$STATICPERL: cannot create" |
406 | mkdir -p "$STATICPERL" || fatal "$STATICPERL: cannot create" |