cairo/test/generate_refs.sh
Chris Wilson ce3806510f test: Add a Makefile.refs generator
Generates the lexicographical Makefile.refs based on the *.ref.png and
*.xfail.png checked into git.

This might be nice to automate as a Makefile target. But for now play
safe and do the updates manually.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-25 13:08:17 +01:00

12 lines
328 B
Bash
Executable file

#!/bin/bash
# A very simple script. But sufficient, hopefully, for our current purposes.
cat <<EOF
# Note REFERENCE_IMAGES must be in lexicographical order.
# Use generate_refs.sh on a git checkout with updated images.
REFERENCE_IMAGES = \\
EOF
git ls-files '*.ref.png' '*.xfail.png' | sed 's/\(.*\)/ \1 \\/'
echo ' $(NULL)'