Author: sebor Date: Wed Nov 7 17:34:15 2007 New Revision: 592994 URL: http://svn.apache.org/viewvc?rev=592994&view=rev Log: 2007-11-07 Martin Sebor * genxviews (myname): Neew variable (constant, really). (OUTDIR): Renamed variable... (outdir): ...to this. (dryrun, quiet): New variables. Added command line option processing for -d, -q, -D, and -o. Handled the quiet and dryrun modes by omitting HTML output and avoiding the invocation of xbuildgen, respectively. (process_results): Enahnced to write to stdout the command line arguments passed to xbuildgen including a comment with the number of logs passed to the script (when non-zero). Corrected XLC++ 7.0, VisualAge C++ 6.0, and SGI MIPSpro globbing expressions. Modified: incubator/stdcxx/trunk/bin/genxviews Modified: incubator/stdcxx/trunk/bin/genxviews URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/bin/genxviews?rev=592994&r1=592993&r2=592994&view=diff ============================================================================== --- incubator/stdcxx/trunk/bin/genxviews (original) +++ incubator/stdcxx/trunk/bin/genxviews Wed Nov 7 17:34:15 2007 @@ -22,13 +22,50 @@ # ######################################################################## +# set program name (used in diagnostic messages) +myname=`basename $0` + +# program to invoke to process detailed results CROSS=$HOME/bin/xbuildgen -OUTDIR=$HOME/public_html/stdcxx/results +# output directory +outdir=$HOME/public_html/stdcxx/results + +dryrun=0 +quiet=0 + +# process command line options +while getopts "dqD:o:" opt_name; do + case $opt_name in + # options with no arguments + + d) # dry run (do not invoke xbuildgen) + dryrun=1 + ;; + + q) # quiet mode + quiet=1 + ;; + + # options with arguments + + D) # output directory + outdir=$OPTARG + ;; + + o) # argument is the name of output file (stdout by default) + outfile=$OPTARG + ;; + + esac; +done -cd $OUTDIR -cat<