[armedbear-cvs] r13549 - trunk/abcl/tools/jar-size

mevenson at common-lisp.net mevenson at common-lisp.net
Tue Aug 30 14:03:30 UTC 2011


Author: mevenson
Date: Tue Aug 30 07:03:29 2011
New Revision: 13549

Log:
Builds successive versions from a Mercurial repository.

Added:
   trunk/abcl/tools/jar-size/build-metrics.ksh   (contents, props changed)

Added: trunk/abcl/tools/jar-size/build-metrics.ksh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/abcl/tools/jar-size/build-metrics.ksh	Tue Aug 30 07:03:29 2011	(r13549)
@@ -0,0 +1,26 @@
+#!/bin/ksh -x
+
+results=build-metrics.out
+
+ANT=/usr/bin/ant
+
+build () {
+    cmd="$ANT abcl.clean abcl.jar"
+    /usr/bin/time -p $cmd 2>>$results
+}
+
+for (( rev=1 ; $rev<1635 ; rev+=10 )) ; do
+    hg update -C -r $rev
+    printf "-----" >> $results
+    rm -f dist/abcl.jar
+    if build ; then
+        hg log --template 'changeset: {rev}:{node}\ndate: {date|isodate}\nsvn: r{svnrev}\ndescription: {desc|firstline}\n' -r $rev >> $results
+        size=`/usr/gnu/bin/du --bytes dist/abcl.jar | awk '{ print $1 }'`
+        echo "abcl.jar-size: $size" >> $results
+    else 
+        echo "changeset $rev failed to build." >> $results
+    fi
+done
+
+
+    
\ No newline at end of file




More information about the armedbear-cvs mailing list