From abeb6c22e0132f3f952fabca5390a08b6e20173f Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Tue, 28 Oct 2014 20:07:01 +0200 Subject: [PATCH] Update reference data test update for git --- tools/testupdate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testupdate.sh b/tools/testupdate.sh index d4895d4..f530b8a 100755 --- a/tools/testupdate.sh +++ b/tools/testupdate.sh @@ -10,12 +10,12 @@ for i in dot umldoc do - find testdata/$i-ref -type f | - grep -v CVS | + git ls-files testdata/*-ref | sed "s/\(testdata\/$i-\)ref\(.*\)/\1ref\2 \1out\2/" | while read refname outname do - if ! cmp -s $refname $outname + if [ -r "$outname" -a -r "$outname" ] && \ + ! cmp -s $refname $outname then cp $outname $refname fi