From commits-return-2576-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Fri Mar 21 20:16:43 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 61009 invoked from network); 21 Mar 2008 20:16:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 20:16:43 -0000 Received: (qmail 28193 invoked by uid 500); 21 Mar 2008 20:16:41 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 28173 invoked by uid 500); 21 Mar 2008 20:16:41 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 28162 invoked by uid 99); 21 Mar 2008 20:16:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 13:16:41 -0700 X-ASF-Spam-Status: No, hits=-2000.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; Fri, 21 Mar 2008 20:16:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 628291A9832; Fri, 21 Mar 2008 13:16:22 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r639795 - /stdcxx/trunk/bin/xbuildgen Date: Fri, 21 Mar 2008 20:16:21 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080321201622.628291A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Fri Mar 21 13:16:20 2008 New Revision: 639795 URL: http://svn.apache.org/viewvc?rev=639795&view=rev Log: 2008-03-21 Martin Sebor * bin/xbuildgen: Set /bin/sh as the interpreter and invoked Bash if the interpreter is a different shell and Bash exists. Added the -V (version) command line option to specify the stdcxx version and branch to generate cross-build results for. Modified: stdcxx/trunk/bin/xbuildgen Modified: stdcxx/trunk/bin/xbuildgen URL: http://svn.apache.org/viewvc/stdcxx/trunk/bin/xbuildgen?rev=639795&r1=639794&r2=639795&view=diff ============================================================================== --- stdcxx/trunk/bin/xbuildgen (original) +++ stdcxx/trunk/bin/xbuildgen Fri Mar 21 13:16:20 2008 @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/bin/sh # # $Id: xbuildgen 601917 2007-12-06 23:46:48Z sebor $ # @@ -66,8 +66,18 @@ # Generate a report for the specified list of tests with # tests listed in columns and builds in rows. # +# -V +# Stdcxx version (branch) to generate results for. +# When omitted, trunk is assumed. +# ######################################################################## +if [ "$BASH_VERSION" = "" ]; then + # this is not Bash; try to invoke it + if [ -x /usr/local/bin/bash ]; then + exec /usr/local/bin/bash $* + fi +fi ###################################################################### # global constants @@ -529,7 +539,7 @@ ###################################################################### # process command line options -while getopts ":hnsv:e:l:o:T:t:" opt_name; do +while getopts ":hnsv:e:l:o:T:t:V:" opt_name; do case $opt_name in # options with no arguments @@ -575,6 +585,11 @@ components_in_rows=0 ;; + V) # specify stdcxx branch/version to generate cross-build + # result views for (trunk by default) + version=$OPTARG + ;; + *) echo "$myname: unknown option : -$opt_name" >&2; echo print_help @@ -862,7 +877,11 @@ ###################################################################### # the location of the logs -logdir="http://people.apache.org/~sebor/stdcxx/results" +if [ -z $version ]; then + logdir="http://people.apache.org/~sebor/stdcxx/results" +else + logdir="http://people.apache.org/~sebor/stdcxx-$version/results" +fi # the name of a temporary file containing the build timings timings_file=$TMP/.stdcxx-timings.$$