You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
929 B

  1. #! /bin/bash
  2. WHAT=$1
  3. DIR=$2
  4. MINIC=$3
  5. MAXIC=$4
  6. MINOC=$5
  7. MAXOC=$6
  8. prefix=$8
  9. meanstatsfilename=$2/mean.html
  10. WORK_DIR=tmp
  11. mkdir $WORK_DIR
  12. DATA_FILE=`find $DIR -name "*.dat" | grep _${WHAT}`
  13. if [ -n "$DATA_FILE" ]; then
  14. echo ""
  15. echo "$1..."
  16. for FILE in $DATA_FILE
  17. do
  18. ##echo hello world
  19. ##echo "mk_mean_script1" ${FILE}
  20. BASE=${FILE##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
  21. ##echo "mk_mean_script1" ${TITLE}
  22. cp $FILE ${WORK_DIR}/${TITLE}
  23. done
  24. cd $WORK_DIR
  25. ../main $1 $3 $4 $5 $6 * >> ../$meanstatsfilename
  26. ../mk_new_gnuplot.sh $1 $2 $7
  27. rm -f *.gnuplot
  28. cd ..
  29. echo '<br/>' >> $meanstatsfilename
  30. webpagefilename=$2/index.html
  31. # echo '<h3>'${WHAT}'</h3>' >> $webpagefilename
  32. echo '<hr/><a href="'$prefix$1'.pdf"><img src="'$prefix$1'.png" alt="'${WHAT}'" /></a><br/>' >> $webpagefilename
  33. fi
  34. rm -R $WORK_DIR