example/convert-to-nia: add -output-netpbm flag

This commit is contained in:
Nigel Tao committed 2023-08-06 10:49:53 +10:00
1 parent 9c3275658a
commit be9d3fcf0f
2 files changed
+79 -14

No files matched your search

+2 -2
View File
@@ -43,8 +43,8 @@ fi
result=0
handle() {
local have=$(gen/bin/example-convert-to-nia <$1 2>/dev/null | gen/bin/example-crc32)
local want=$(djpeg $1 2>/dev/null | gen/bin/example-convert-to-nia 2>/dev/null | gen/bin/example-crc32)
local have=$(gen/bin/example-convert-to-nia -output-netpbm <$1 2>/dev/null | gen/bin/example-crc32)
local want=$(djpeg $1 2>/dev/null | gen/bin/example-crc32)
if [ "$want" != "00000000" ]; then
if [ "$want" == "$have" ]; then
echo "Match $1"