source: trunk/third/tiff/test_pics.sh @ 18174

Revision 18174, 504 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18173, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3#       The -f force flag will force new logs to overwrite existing ones.
4#
5FORCE=0
6if test "$1" = "-f" ; then
7  FORCE=1
8  shift
9fi
10
11#
12#       Loop over all passed TIFF files
13#
14for a in $* ; do
15  BASE=`dirname $a`/`basename $a .tif`
16  tools/tiffdump $a > ${BASE}.rpt.new
17 
18  if test $FORCE = 1 ; then
19    mv ${BASE}.rpt.new ${BASE}.rpt
20    continue;
21  fi
22
23  if diff ${BASE}.rpt ${BASE}.rpt.new ; then
24    rm ${BASE}.rpt.new
25  else
26    echo Differences between ${BASE}.rpt and ${BASE}.rpt.new
27  fi
28done
Note: See TracBrowser for help on using the repository browser.