#!/bin/sh



echo \*\*\* You should see nothing below except for lines starting with \*\*\*:

for f in testFiles/*.txt
do
 f=`perl -e '$_ = $ARGV[0]; s/\.txt//; s/.*\///; print;' $f`
 if [ -e testFiles/$f.tex ]; then
     rm testFiles/$f.tex;
 fi
 ./easylatex.pl -e testFiles/$f.txt

 echo \*\*\* diff $f.tex testFiles/$f.tex.correct:
 perl -pi -e 's/easyLatexGraph\d+/easyLatexGraph/g;' $f.tex
 diff $f.tex testFiles/$f.tex.correct
 #rm $f.tex
done