libtiff/dist/newalpha

9 lines
307 B
Plaintext
Raw Normal View History

1999-07-27 17:50:26 -04:00
#! /bin/sh
# $Header: /cvs/maptools/cvsroot/libtiff/dist/Attic/newalpha,v 1.1 1999-07-27 21:50:27 mike Exp $
if test -r tiff.alpha; then
ALPHA=`cat tiff.alpha`; rm -f tiff.alpha
echo "$ALPHA" | awk '{ printf "define ALPHA %03d\n", $3+1}' > tiff.alpha
else
echo "define ALPHA 001" >tiff.alpha
fi