2008-07-09 22:04:48 +08:00
|
|
|
#! /bin/bash
|
|
|
|
WHAT=$1
|
|
|
|
DIR=$2
|
|
|
|
MINIC=$3
|
|
|
|
MAXIC=$4
|
|
|
|
MINOC=$5
|
|
|
|
MAXOC=$6
|
2009-03-04 15:21:17 +08:00
|
|
|
prefix=$8
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2008-08-05 07:12:48 +08:00
|
|
|
meanstatsfilename=$2/mean.html
|
|
|
|
|
2008-07-09 22:04:48 +08:00
|
|
|
WORK_DIR=tmp
|
|
|
|
mkdir $WORK_DIR
|
|
|
|
|
|
|
|
DATA_FILE=`find $DIR -name "*.dat" | grep _${WHAT}`
|
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
if [ -n "$DATA_FILE" ]; then
|
2008-07-13 05:41:32 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
echo ""
|
|
|
|
echo "$1..."
|
|
|
|
for FILE in $DATA_FILE
|
|
|
|
do
|
|
|
|
##echo hello world
|
|
|
|
##echo "mk_mean_script1" ${FILE}
|
|
|
|
BASE=${FILE##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
##echo "mk_mean_script1" ${TITLE}
|
|
|
|
cp $FILE ${WORK_DIR}/${TITLE}
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
cd $WORK_DIR
|
|
|
|
../main $1 $3 $4 $5 $6 * >> ../$meanstatsfilename
|
|
|
|
../mk_new_gnuplot.sh $1 $2 $7
|
|
|
|
rm -f *.gnuplot
|
|
|
|
cd ..
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
echo '<br/>' >> $meanstatsfilename
|
2008-08-05 07:12:48 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
webpagefilename=$2/index.html
|
|
|
|
# echo '<h3>'${WHAT}'</h3>' >> $webpagefilename
|
|
|
|
echo '<hr/><a href="'$prefix$1'.pdf"><img src="'$prefix$1'.png" alt="'${WHAT}'" /></a><br/>' >> $webpagefilename
|
2008-07-13 05:41:32 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
fi
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2011-01-31 19:45:18 +08:00
|
|
|
rm -R $WORK_DIR
|
2008-07-09 22:04:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|