#!/bin/bash
# 
# Stephen W. Thomas
# November 2010, late at night.
#
# This simple script is used for the TKDE experiments. Simply run this script with:
# ./runAll
# (Assuming you have your $TXSCHEMA_HOME variable set correctly!)
#


verbose=0
if [[ $# == 1 ]]; then
   verbose=$1
fi


if [[ -e results.s.dat ]] || [[ -e results.ns.dat ]]; then
    echo "Warning: results.*.dat already exists; don't want to overwrite."
    exit 1
fi

touch results.s.dat
touch results.ns.dat

if [[ $verbose == 1 ]]; then
    echo "Running sequenced exeriments (units are seconds)"
fi


SLICES="ds1_small-50 ds1_small-100 ds1_small-200 ds1_small-400 ds1_small-800"
#SLICES="ds1_small-100"
for slice in $SLICES
do
    runOne data/$slice 1 >> results.s.dat
    runOne data/$slice 0 >> results.ns.dat
done
