summaryrefslogtreecommitdiff
path: root/trunk/qpid/java/perftests/bin/processing/processAll.sh
blob: 7fce0abb60d13d07abd8775f1dd8ef9dee49b84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash 

usage()
{
 echo "processResults.sh <search dir>"
 exit 1
}

root=`pwd`
echo $root
graphFile=graph.data

if [ $# != 1 ] ; then
 usage
fi

mkdir -p results

for file in `find $1 -name $graphFile` ; do

  dir=`dirname $file`

  echo Processing : $dir
  pushd $dir &> /dev/null

  $root/process.sh $graphFile

  echo Copying Images
  cp work/*png $root/results/
  
  popd &> /dev/null
  echo Done
done