Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Tuesday December 29, 2009
04:49 PM

Building a lot of perl today...

[ #40057 ]

#!/bin/bash
 
set -x
set -e
perl="$HOME/src/perl"
 
function build-it () {
  bversion=$1
  shift 1
 
  dir=/opt/$bversion
  tar=/opt/$bversion.tar.bz2
 
  if [[ ! -e $tar ]]; then
    echo "Clobbering $dir"
 
    rm -rf $dir
    mkdir $dir
 
    cd $HOME/src/perl
    echo "Configure "$(date) > $dir/stamp.log
    ./Configure -des -Dcc='ccache gcc' -Dprefix=$dir $* 2>&1 | tee $dir/config.log
    echo "make "$(date) >> $dir/stamp.log
    make 2>&1 | tee $dir/make.log
    echo "make test "$(date) >> $dir/stamp.log
    make test 2>&1 | tee $dir/test.log
    echo "make install "$(date) >> $dir/stamp.log
    make install 2>&1 | tee $dir/install.log
    echo "End "$(date) >> $dir/stamp.log
    chown -R jbenjore $dir/
 
    cd /
    tar cjf $tar $dir
 
    cd $HOME/src/perl
    git clean -xdf
    git reset --hard
  fi
}
 
git clean -xdf
git reset --hard
 
for tag in\
    v5.11.3\
    perl-5.10.1 perl-5.10.1\
    perl-5.8.9 perl-5.8.8 perl-5.8.7 perl-5.8.6 perl-5.8.5 perl-5.8.4 perl-5.8.3 perl-5.8.2 perl-5.8.2 perl-5.8.1 perl-5.8.0
  do
  git checkout $tag
 
  build-it $tag-64-dbg      -DDEBUGGING -Duse64bitint
  build-it $tag-thr-dbg     -DDEBUGGING -Dusethreads
  build-it $tag-64-thr-dbg  -DDEBUGGING -Duse64bitint -Dusethreads
  build-it $tag-dbg         -DDEBUGGING
  build-it $tag             -DDEBUGGING=-g
done
 
for tag in\
    perl-5.6.2 perl-5.005_04
  do
  git checkout $tag
 
  build-it $tag-64-dbg      -DDEBUGGING -Duse64bitint
  build-it $tag-thr-dbg     -DDEBUGGING -Dusethreads
  build-it $tag-64-thr-dbg  -DDEBUGGING -Duse64bitint -Dusethreads
  build-it $tag-dbg         -DDEBUGGING
  build-it $tag             -g
done

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.