#!/bin/bash
#@DOC@ run tryem -a with 3 different algorithms to compare
#
# Copyright (C) 2006  Nathan (Acorn) Pooley
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
# 
# 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 (gpl.txt) for more details. 
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# 
# You can contact the author, Nathan (Acorn) Pooley, by writing
# to Nathan (Acorn) Pooley, 949 Buckeye Drive, Sunnyvale, CA  94086, USA
# or through the form at http://www.rawbw.com/~acorn/wand/feedback.html
# 

./tryem3 -a

if (( 0 )) ; then
	echo "Creating t3aO..."
	tryem -O -a | grep '^OPL:' > t3aO
	echo "Created  t3aO  (fmtb_parse_oldA)"
	echo "Creating t3ao..."
	tryem -o -a | grep '^OPL:' > t3ao
	echo "Created  t3ao  (old algorithm)"
	echo "Creating t3aM..."
	tryem -M -a | grep '^OPL:' > t3aM
	echo "Created  t3aM  (classic minimal algorithm)"
	echo "Creating t3am..."
	tryem -m -a | grep '^OPL:' > t3am
	echo "Created  t3am  (minimal algorithm)"
	if (( 0 )) ; then
		echo "Creating t3ax..."
		tryem -x -a | grep '^OPL:' > t3ax
		echo "Created  t3ax  (experimental minimal algorithm)"
		echo "Creating t3ap..."
		tryem -p -a | grep '^OPL:' > t3ap
		echo "Created  t3ap  (picsim algorithm)"
	fi
	echo "Done! - Now mgdiff the above files"
fi
