Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 40419 invoked from network); 8 Nov 2007 21:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 21:22:55 -0000 Received: (qmail 30056 invoked by uid 500); 8 Nov 2007 21:22:43 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 30043 invoked by uid 500); 8 Nov 2007 21:22:43 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 30032 invoked by uid 99); 8 Nov 2007 21:22:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 13:22:43 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 21:22:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 393A61A9838; Thu, 8 Nov 2007 13:22:34 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r593327 - /incubator/stdcxx/trunk/bin/xbuildgen Date: Thu, 08 Nov 2007 21:22:34 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071108212234.393A61A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu Nov 8 13:22:33 2007 New Revision: 593327 URL: http://svn.apache.org/viewvc?rev=593327&view=rev Log: 2007-11-08 Martin Sebor * xbuildgen: Added hostname and OS name to the "Generated" info. Added library and buildspace sizes to the Logs and Columns table. Modified: incubator/stdcxx/trunk/bin/xbuildgen Modified: incubator/stdcxx/trunk/bin/xbuildgen URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/bin/xbuildgen?rev=593327&r1=593326&r2=593327&view=diff ============================================================================== --- incubator/stdcxx/trunk/bin/xbuildgen (original) +++ incubator/stdcxx/trunk/bin/xbuildgen Thu Nov 8 13:22:33 2007 @@ -348,7 +348,7 @@

Multi-platform Test Result View

- Generated `date` + Generated `date` on `hostname` running `uname -sr`

Index

@@ -398,6 +398,9 @@ build date revision build log + library size
(bytes) + build size
(kB) + clean
(kb) EOF @@ -449,6 +452,27 @@ # strip the year from the date date=${date% [1-9][0-9][0-9][0-9]} + # extract the size of the library binary from the build log + # being careful to avoid the symlink (in the case of a .so) + libsize=`awk '/build\/lib\/libstd[^ ]*\$/{ print $5 }' $txtlog` + if [ $? -ne 0 ]; then + echo "$myname: warning: unable to extract library size from $l" >&2 + libsize="(unknown)" + fi + + # extract the size of the whole build, both before and after + # it's been cleaned + buildsizes=` sed -n '/^### du -sk .\/build\/ .\/build\/\*/{n;p;}' \ + $txtlog | sed 's/ *\([1-9][0-9]*\).*/\1/'` + if [ $? -ne 0 ]; then + echo "$myname: warning: unable to extract build size from $l" >&2 + fullbuildsize="(unknown)" + cleanbuildsize="(unknown)" + else + fullbuildsize=${buildsizes%%[^0-9]*} + cleanbuildsize=${buildsizes#[0-9]*[^0-9]} + fi + # extract the source repository revision number the build # corresponds to from the name of the log revno=`echo $l | sed "s/.*-\([1-9][0-9]*\)-log.*/\1/"` @@ -487,6 +511,9 @@ "$revno" \ "" output " $fname" + output " $libsize" + output " $fullbuildsize" + output " $cleanbuildsize" output " " fi