#!/bin/bash #@DOC@ run tryem with 3 different algorithms to compare them # # 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 # opts="$@" echo "Creating t3O..." tryem -O $opts | grep '^OPL:' > t3O echo "Created t3O (fmtb_parse_oldA)" echo "Creating t3o..." tryem -o $opts | grep '^OPL:' > t3o ident="identical" diff -q t3O t3o >/dev/null || ident="different" echo "Created t3o (old algorithm) (t3O and t3o are $ident) mgdiff t3O t3o" echo "Creating t3M..." tryem -M $opts | grep '^OPL:' > t3M ident="identical" diff -q t3o t3M >/dev/null || ident="different" echo "Created t3M (classic minimal algorithm) (t3o and t3M are $ident) mgdiff t3o t3M" echo "Creating t3m..." tryem -m $opts | grep '^OPL:' > t3m ident="identical" diff -q t3M t3m >/dev/null || ident="different" echo "Created t3m (minimal algorithm) (t3M and t3m are $ident) mgdiff t3M t3m" if (( 0 )) ; then echo "Creating t3x..." tryem -x $opts | grep '^OPL:' > t3x echo "Created t3x (experimental minimal algorithm)" fi echo "Creating t3p..." tryem -p $opts | grep '^OPL:' > t3p ident="identical" diff -q t3m t3p >/dev/null || ident="different" echo "Created t3p (picsim algorithm) (t3m and t3p are $ident) mgdiff t3m t3p" echo "Done! - Now mgdiff the above files" |
This file Copyright (C) 2006 by Nathan (Acorn) Pooley
Go to TOP Wand page
Go to Acorn's personal webpage
Go to Hogwarts website: www.gotohogwarts.com
Snout: www.snout.org/game
Gadgets of Justice Unlimited
Snout GC (Wiki)
Snout Wiki
File created by do_doc at Wed May 30 03:30:45 PDT 2007