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.40 by root, Sun May 1 07:56:26 2011 UTC vs.
Revision 1.44 by root, Tue Jun 14 07:04:43 2011 UTC

78# life easier when working in e.g. "staticperl cpan / look" 78# life easier when working in e.g. "staticperl cpan / look"
79PATH="$PERL_PREFIX/perl/bin:$PATH" 79PATH="$PERL_PREFIX/perl/bin:$PATH"
80 80
81# set version in a way that Makefile.PL can extract 81# set version in a way that Makefile.PL can extract
82VERSION=VERSION; eval \ 82VERSION=VERSION; eval \
83$VERSION="1.21" 83$VERSION="1.31"
84 84
85BZ2=bz2 85BZ2=bz2
86BZIP2=bzip2 86BZIP2=bzip2
87 87
88fatal() { 88fatal() {
156 verblock <<EOF 156 verblock <<EOF
157downloading perl 157downloading perl
158to manually download perl yourself, place 158to manually download perl yourself, place
159perl-$PERL_VERSION.tar.$BZ2 in $STATICPERL 159perl-$PERL_VERSION.tar.$BZ2 in $STATICPERL
160trying $URL 160trying $URL
161
162either curl or wget is required for automatic download.
163curl is tried first, then wget.
161EOF 164EOF
162 165
163 rm -f perl-$PERL_VERSION.tar.$BZ2~ # just to be on the safe side 166 rm -f perl-$PERL_VERSION.tar.$BZ2~ # just to be on the safe side
164 curl -f >perl-$PERL_VERSION.tar.$BZ2~ "$URL" \ 167 curl -f >perl-$PERL_VERSION.tar.$BZ2~ "$URL" \
165 || wget -O perl-$PERL_VERSION.tar.$BZ2~ "$URL" \ 168 || wget -O perl-$PERL_VERSION.tar.$BZ2~ "$URL" \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines