#!/bin/bash

echo "Converting all scores files to the gnuplot input format ..."

# root dir
rootdir=/home/goetz/multal

# dir containing all data
datadir=`pwd`

# dir containting the reference data
refdir=$rootdir/alcompar/BAliBASE

# filter file for converting timestats to gnuplots
convexec=$rootdir/filter/scores2gnuplotBAliBASE

# now run trough all files and do the conversion:

for name in `find -type d -name "*test*"`; do
    cd $datadir/$name
    pwd
    $convexec $refdir/$name/outputorder < scores
done

echo "done."
