Building a lot of perl today...

jjore on 2009-12-29T21:49:08

#!/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


$perl unused

Mr. Muskrat on 2010-01-07T05:03:26

You've set $perl to $HOME/src/perl but you never use it. I think those cd $HOME/src/perl lines should actually be cd $perl.