--- App-Staticperl/staticperl.sh 2010/12/07 20:03:15 1.9 +++ App-Staticperl/staticperl.sh 2010/12/10 02:35:54 1.12 @@ -61,9 +61,12 @@ ############################################################################# # support +unset PERL5OPT PERL5LIB PERLLIB PERL_UNICODE PERLIO_DEBUG +export LC_ALL=C # just to be on the safe side + # set version in a way that Makefile.PL can extract VERSION=VERSION; eval \ -$VERSION=0.1 +$VERSION=0.9 BZ2=bz2 BZIP2=bzip2 @@ -264,14 +267,20 @@ # create a "make install" replacement for CPAN cat >"$PERL_PREFIX"/bin/cpan-make-install <"$MKBUNDLE~" || fatal "$MKBUNDLE~: cannot create" chmod 755 "$MKBUNDLE~" && mv "$MKBUNDLE~" "$MKBUNDLE" - "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" "$@" + CACHE="$STATICPERL/cache" + mkdir -p "$CACHE" + "$PERL_PREFIX/bin/perl" -- "$MKBUNDLE" --cache "$CACHE" "$@" } if [ $# -gt 0 ]; then @@ -426,6 +437,11 @@ bundle --perl "$@" exit ;; + mkapp ) + ( install ) + bundle --app "$@" + exit + ;; help ) podusage 2 ;;