ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/staticperl.sh
(Generate patch)

Comparing App-Staticperl/staticperl.sh (file contents):
Revision 1.11 by root, Wed Dec 8 22:27:35 2010 UTC vs.
Revision 1.13 by root, Fri Dec 10 10:44:20 2010 UTC

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
64unset PERL5OPT PERL5LIB PERLLIB PERL_UNICODE PERLIO_DEBUG
65export 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
65VERSION=VERSION; eval \ 68VERSION=VERSION; eval \
66$VERSION=0.9 69$VERSION=0.9
67 70
147 verblock <<EOF 150 verblock <<EOF
148unpacking perl 151unpacking perl
149EOF 152EOF
150 153
151 mkdir -p unpack 154 mkdir -p unpack
152 $BZIP2 -d <perl-$PERL_VERSION.tar.bz2 | tar xC unpack \ 155 $BZIP2 -d <perl-$PERL_VERSION.tar.bz2 | tar xfC - unpack \
153 || fatal "perl-$PERL_VERSION.tar.bz2: error during unpacking" 156 || fatal "perl-$PERL_VERSION.tar.bz2: error during unpacking"
154 chmod -R u+w unpack/perl-$PERL_VERSION 157 chmod -R u+w unpack/perl-$PERL_VERSION
155 mv unpack/perl-$PERL_VERSION perl-$PERL_VERSION 158 mv unpack/perl-$PERL_VERSION perl-$PERL_VERSION
156 rmdir -p unpack 159 rmdir -p unpack
157 fi 160 fi
391} 394}
392 395
393bundle() { 396bundle() {
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
399if [ $# -gt 0 ]; then 404if [ $# -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"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines