]> granicus.if.org Git - imagemagick/blob - Magick++/demo/zoom_triangle.sh
(no commit message)
[imagemagick] / Magick++ / demo / zoom_triangle.sh
1 #!/bin/sh
2 #
3 # Copyright 2004 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
4 #
5 # This file is part of Magick++, the C++ API for ImageMagick and
6 # ImageMagick.  Please see the file "COPYING" included with Magick++
7 # for usage and copying restrictions.
8 #
9
10 SRCDIR=`dirname $0`
11 SRCDIR=`cd $SRCDIR; pwd`/
12 export SRCDIR
13 cd Magick++/demo || exit 1
14
15 base_test=`echo $0 | sed -e 's:.*/::g;s:test_::;s:\.sh::'`
16 executable=`echo $base_test | sed -e 's:_.*$::'`
17 filter=`echo $base_test | sed -e 's:.*_::'`
18
19 outfile="test_${base_test}.out"
20
21 rm -f $outfile
22 ${MEMCHECK} ./$executable -filter $filter -geometry 600x600 ${SRCDIR}/model.miff  ${executable}_${filter}_out.miff 2>&1 > $outfile
23 status=$?
24 if test $status -eq 1
25 then
26   cat $outfile
27 fi
28 rm -f $outfile
29 exit $status
30
31