stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r639795 - /stdcxx/trunk/bin/xbuildgen
Date Fri, 21 Mar 2008 20:16:21 GMT
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  <sebor@roguewave.com>

	* 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 <version>
+#          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.$$



Mime
View raw message