1#!/bin/sh 2# 3# Basic sanity check for tiffcp + tiffsplit 4# 5# First we use tiffcp to join our test files into a multi-frame TIFF 6# and then we use tiffsplit to split them out again. 7# 8. ${srcdir:-.}/common.sh 9conjoined=deleteme-conjoined-$$.tif 10splitfile=deleteme-split-$$ 11 12operation=tiffcp 13${TIFFCP} ${IMG_UNCOMPRESSED} ${conjoined} 14status=$? 15 16if test $status -eq 0 17then 18 operation=tiffsplit 19 ${TIFFSPLIT} ${conjoined} ${splitfile} 20 status=$? 21fi 22 23if test $status -eq 0 24then 25 : 26 rm -f ${conjoined} ${splitfile}* 27else 28 echo "Test failed (${operation} returned ${status}). Please inspect these output files:" 29 echo " " ${conjoined} ${splitfile}* ${reconjoined} 30fi 31 32exit $status 33