UMLGraph/tools/testupdate.sh

25 lines
468 B
Bash
Executable File

#!/bin/sh
#
# Update the reference test data to match what is actually produced
# This should only be executed after manually verifying that the
# differences are indeed intentional.
#
# Diomidis Spinellis. August 2008.
#
# $Id$
#
for i in dot umldoc
do
find testdata/$i-ref -type f |
grep -v CVS |
sed "s/\(testdata\/$i-\)ref\(.*\)/\1ref\2 \1out\2/" |
while read refname outname
do
if ! cmp -s $refname $outname
then
cp $outname $refname
fi
done
done