diff options
author | Mike Welles <mike@onshore.com> | 1999-09-28 17:22:20 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@codelibre.net> | 2022-06-22 23:29:50 +0100 |
commit | 4e500fc403b41416d3febb9aec42af4c01f5ea47 (patch) | |
tree | c6f6010186a0648de50210deeb38d5f886f6a363 /test_pics.sh | |
parent | 00c28dda69f1be886da146b085f795478d661ddf (diff) | |
download | libtiff-git-tiff-3.5-oldcvs.tar.gz |
v3.5.2 releasev3.5.2tiff-3.5-oldcvs
Diffstat (limited to 'test_pics.sh')
-rwxr-xr-x | test_pics.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test_pics.sh b/test_pics.sh new file mode 100755 index 00000000..8605ead7 --- /dev/null +++ b/test_pics.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# +# The -f force flag will force new logs to overwrite existing ones. +# +FORCE=0 +if test "$1" = "-f" ; then + FORCE=1 + shift +fi + +# +# Loop over all passed TIFF files +# +for a in $* ; do + BASE=`dirname $a`/`basename $a .tif` + tools/tiffdump $a > ${BASE}.rpt.new + + if test $FORCE = 1 ; then + mv ${BASE}.rpt.new ${BASE}.rpt + continue; + fi + + if diff ${BASE}.rpt ${BASE}.rpt.new ; then + rm ${BASE}.rpt.new + else + echo Differences between ${BASE}.rpt and ${BASE}.rpt.new + fi +done |