#!/bin/sh

set -eu

PICS=./pic
GIFS=$(ls ./pic/*.gif)

head --bytes=-20 <$PICS/treescap.gif | giffix 2>/dev/null | gifbuild -d >giffixed.ico
head --bytes=-20 <$PICS/treescap.gif | giffix 2>/dev/null | gifbuild -d | ./tests/tapdiffer "giffix: Testing giffix behavior" giffixed.ico
