#!/bin/sh
#
# Copyright (c) 1997 The President and Fellows of Harvard College.
# All rights reserved.
# Copyright (c) 1997 Aaron B. Brown.
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program, in the file COPYING in this distribution;
#   if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
#   Cambridge, MA 02139, USA.
#
# Results obtained from this benchmark may be published only under the
# name "HBench-OS".

#
# create-all-latgraphs
#
# This script is meant to be run from the results directory. It looks at
# all directories that are two levels deep (i.e., */*) and runs gen-latgraphs
# on their lat_mem_rd subdirectories (if they exist!).
#
# Requires gnuplot!
#
# $Id: create-all-latgraphs,v 1.1.1.1 2003/02/28 17:19:54 fedorova Exp $

for dir in /usr/pkg/share/hbench/*/*
do
    if [ -d $dir -a -d ${dir}/lat_mem_rd ]; then
	echo "Generating latency graph for $dir..."
	/usr/pkg/libexec/hbench/gen-latgraph -ps ${dir}/lat_mem_rd
    fi
done
