Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 41693 invoked from network); 15 May 2008 16:35:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 16:35:16 -0000 Received: (qmail 76293 invoked by uid 500); 15 May 2008 16:35:18 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 76283 invoked by uid 500); 15 May 2008 16:35:18 -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 76272 invoked by uid 99); 15 May 2008 16:35:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 09:35:18 -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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 16:34:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6F7512388A01; Thu, 15 May 2008 09:34:55 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r656725 - in /stdcxx/branches/4.2.x/bin: xbuildgen xcomp.awk Date: Thu, 15 May 2008 16:34:55 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080515163455.6F7512388A01@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu May 15 09:34:55 2008 New Revision: 656725 URL: http://svn.apache.org/viewvc?rev=656725&view=rev Log: 2008-05-15 Martin Sebor * bin/xbuildgen (mydir, rootdir): Added global constants defined to the name of the directory the script is located in (assuming it's invoked using a relative pathname) and the root directory of the stdcxx source tree. (xcomp): Defined relative to rootdir instead of using $HOME and invoked directly instead of passing the name of the awk script as an argument to awk. * bin/xcomp.awk: Allowed script to be invoked directly. Modified: stdcxx/branches/4.2.x/bin/xbuildgen stdcxx/branches/4.2.x/bin/xcomp.awk Modified: stdcxx/branches/4.2.x/bin/xbuildgen URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/bin/xbuildgen?rev=656725&r1=656724&r2=656725&view=diff ============================================================================== --- stdcxx/branches/4.2.x/bin/xbuildgen (original) +++ stdcxx/branches/4.2.x/bin/xbuildgen Thu May 15 09:34:55 2008 @@ -86,6 +86,12 @@ # set program name (used in diagnostic messages) readonly myname=`basename $0` +# the directory where the script is located to get a hold of other +# files at locations relative to this one (assumes the script resides +# within the stdcxx source tree) +readonly mydir=`dirname $0` +readonly rootdir=$mydir/.. + readonly today=`LC_ALL="C" date` # URL to the ViewVC directory @@ -98,7 +104,10 @@ readonly svnpath="$viewvc/stdcxx/trunk" # expected failures -readonly xfailfile=$HOME/stdcxx/etc/config/xfail.txt +readonly xfailfile=$rootdir/etc/config/xfail.txt + +# xcross-component awk script +readonly xcomp=$mydir/xcomp.awk ###################################################################### # global variables @@ -931,11 +940,6 @@ ###################################################################### -# xcross-component script -xcomp=$HOME/stdcxx/bin/xcomp.awk - -###################################################################### - # check to see if [ -r $xfailfile ]; then xfails=$xfailfile @@ -943,7 +947,7 @@ xfails="" fi -awk -f $xcomp bodyonly=1 logdir=$logdir $xfails $textlogs | output +$xcomp bodyonly=1 logdir=$logdir $xfails $textlogs | output ###################################################################### # output the rest of the HTML file Modified: stdcxx/branches/4.2.x/bin/xcomp.awk URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/bin/xcomp.awk?rev=656725&r1=656724&r2=656725&view=diff ============================================================================== --- stdcxx/branches/4.2.x/bin/xcomp.awk (original) +++ stdcxx/branches/4.2.x/bin/xcomp.awk Thu May 15 09:34:55 2008 @@ -1,4 +1,4 @@ -#!/bin/awk +#!/usr/bin/awk -f # # $Id$ #