Author: sebor Date: Mon Dec 17 20:32:19 2007 New Revision: 605081 URL: http://svn.apache.org/viewvc?rev=605081&view=rev Log: 2007-12-17 Martin Sebor <[EMAIL PROTECTED]>
* buildntest (DATEFMT): Corrected/simplified parenthesization to (hopefully) resolve the negative real times problem in output. Wrote to stdout the URL of the script source in the repository. Added HeadURL and Revision keywords to svn:keywords. Modified: incubator/stdcxx/trunk/bin/buildntest (contents, props changed) Modified: incubator/stdcxx/trunk/bin/buildntest URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/bin/buildntest?rev=605081&r1=605080&r2=605081&view=diff ============================================================================== --- incubator/stdcxx/trunk/bin/buildntest (original) +++ incubator/stdcxx/trunk/bin/buildntest Mon Dec 17 20:32:19 2007 @@ -114,7 +114,8 @@ # global constants # date format used to compute real time elapsed between stages -DATEFMT="((((((%Y*366)+(1%j-100)*24)+(1%H-100)*60)+(1%M-100))*60)+(1%S-100))" +# assumes 366 days/year for simplicity +DATEFMT="((((%Y*366+1%j-100)*24+1%H-100)*60+1%M-100)*60+1%S-100)" OUTFILE=results.xml if [ -z "$MAKE" ]; then @@ -284,8 +285,24 @@ ########## # main body of script +# write the name of the script and all arguments echo "### running $0 $* [$#]" +# script's revision number +myrev='$Revision$' +myrev=${myrev#'$Revision: '} # strip leading text +myrev=${myrev%' $'} # strip trailing text + +# URL to this version of the script in the repository +myurl='$HeadURL$' +myurl=${myurl#'$HeadURL: '} # strip leading text +myurl=${myurl%' $'} # strip trailing text +myurl="$myurl?view=markup&rev=$myrev" + +# write the URL to the version of the script that's running +echo; echo "### script source: $myurl" + + # process command line options while getopts ":nv:e:l:o:t:B:C:E:L:M:P:T:" opt_name; do @@ -385,9 +402,6 @@ mkdir $tmpdir - -# echo command line arguments -echo "### running $0 $* [$#]" # start by writing out information about the host to stdout echo; echo "### uname -a:" Propchange: incubator/stdcxx/trunk/bin/buildntest ------------------------------------------------------------------------------ --- svn:keywords (original) +++ svn:keywords Mon Dec 17 20:32:19 2007 @@ -1 +1 @@ -Id +HeadURL Id Revision