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.4 by root, Tue Dec 7 09:27:54 2010 UTC vs.
Revision 1.5 by root, Tue Dec 7 09:48:47 2010 UTC

139trying $URL 139trying $URL
140EOF 140EOF
141 141
142 curl >perl-$PERLVER.tar.$BZ2~ "$URL" \ 142 curl >perl-$PERLVER.tar.$BZ2~ "$URL" \
143 || wget -O perl-$PERLVER.tar.$BZ2~ "$URL" \ 143 || wget -O perl-$PERLVER.tar.$BZ2~ "$URL" \
144 || fatal "$URL: error during downloading" 144 || fatal "$URL: unable to download"
145 mv perl-$PERLVER.tar.$BZ2~ perl-$PERLVER.tar.$BZ2 145 mv perl-$PERLVER.tar.$BZ2~ perl-$PERLVER.tar.$BZ2
146 fi 146 fi
147 147
148 verblock <<EOF 148 verblock <<EOF
149unpacking perl 149unpacking perl
345 ) || exit $? 345 ) || exit $?
346 done 346 done
347} 347}
348 348
349############################################################################# 349#############################################################################
350# do schmorpy stuff
351
352MODSRCDIR=~/src
353
354instmodsrc() {
355 for mod in "$@"; do
356 instmod_src "$MODSRCDIR/$mod"
357 done
358}
359
360install_schmorp() {
361 install
362
363 instcpan Data::Dump Term::ReadLine::Perl Term::ANSIColor Term::ReadKey
364 instcpan Digest::SHA Digest::MD6 Digest::SHA256 Digest::MD4 Digest::HMAC_MD5 Digest::HMAC_MD6 Digest::FNV
365 #instcpan Net::SSLeay # requires static -ldl
366
367 instmodsrc common-sense Crypt-Twofish2 Array-Heap Convert-Scalar Compress-LZF JSON-XS
368 instmodsrc EV Guard Async-Interrupt IO-AIO
369 instmodsrc AnyEvent AnyEvent-AIO Coro AnyEvent-HTTP
370 instmodsrc Linux-Inotify2 EV-Loop-Async
371
372 instcpan AnyEvent::HTTPD
373}
374
375#############################################################################
376# main 350# main
377 351
378podusage() { 352podusage() {
379 echo 353 echo
380 if [ -e "$PREFIX/bin/perl" ]; then 354 if [ -e "$PREFIX/bin/perl" ]; then
429 ;; 403 ;;
430 instcpan ) 404 instcpan )
431 instcpan "$@" 405 instcpan "$@"
432 exit 406 exit
433 ;; 407 ;;
434 instschmorp )
435 install_schmorp
436 ;;
437 cpan ) 408 cpan )
438 install 409 install
439 "$PREFIX/bin/cpan" "$@" 410 "$PREFIX/bin/cpan" "$@"
440 exit 411 exit
441 ;; 412 ;;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines