mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
makepng fixes for the palette case
Also allow extra command line arguments; convenient for testing odd things. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
@@ -15,10 +15,22 @@
|
||||
# ones that extend the code-coverage of libpng from the existing test files in
|
||||
# contrib/pngsuite.
|
||||
test -n "$MAKEPNG" || MAKEPNG=./makepng
|
||||
if test "$1" = "-v"
|
||||
then
|
||||
verbose=1
|
||||
shift
|
||||
else
|
||||
verbose=
|
||||
fi
|
||||
what="$1"
|
||||
shift
|
||||
cmdline="$@"
|
||||
opts=
|
||||
|
||||
mp(){
|
||||
${MAKEPNG} $opts $1 "$3" "$4" "$3-$4$2.png"
|
||||
test -n "$verbose" &&
|
||||
echo ${MAKEPNG} $opts $cmdline $1 "$3" "$4" "$3-$4$2.png"
|
||||
${MAKEPNG} $opts $cmdline $1 "$3" "$4" "$3-$4$2.png"
|
||||
}
|
||||
|
||||
mpg(){
|
||||
@@ -39,7 +51,7 @@ mptrans(){
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
case "$what" in
|
||||
--small)
|
||||
opts="--small";;&
|
||||
|
||||
|
||||
Reference in New Issue
Block a user