source: branches/streams/abcl/tools/jar-size/build-metrics.ksh

Last change on this file was 13549, checked in by Mark Evenson, 13 years ago

Builds successive versions from a Mercurial repository.

  • Property svn:executable set to *
File size: 642 bytes
Line 
1#!/bin/ksh -x
2
3results=build-metrics.out
4
5ANT=/usr/bin/ant
6
7build () {
8    cmd="$ANT abcl.clean abcl.jar"
9    /usr/bin/time -p $cmd 2>>$results
10}
11
12for (( rev=1 ; $rev<1635 ; rev+=10 )) ; do
13    hg update -C -r $rev
14    printf "-----" >> $results
15    rm -f dist/abcl.jar
16    if build ; then
17        hg log --template 'changeset: {rev}:{node}\ndate: {date|isodate}\nsvn: r{svnrev}\ndescription: {desc|firstline}\n' -r $rev >> $results
18        size=`/usr/gnu/bin/du --bytes dist/abcl.jar | awk '{ print $1 }'`
19        echo "abcl.jar-size: $size" >> $results
20    else 
21        echo "changeset $rev failed to build." >> $results
22    fi
23done
24
25
26   
Note: See TracBrowser for help on using the repository browser.