view tests/refupdate.sh @ 35915:aff0f7d45872

configure: Set CPPFLAGS to enable commonly used system features MPlayer relies on POSIX, XOPEN and C99 features being available. However, the necessary CPPFLAGS to enable those features are not set explicitly; they are just used in some configure tests. Set flags for these features explicitly in order to ensure they are always available.
author diego
date Tue, 19 Mar 2013 10:42:28 +0000
parents 6dc79618ec0e
children
line wrap: on
line source

#!/bin/sh
# updates all changed/new results in ref/
find res -name '*.bad' | while read bad_res ; do
  ref_file="ref/${bad_res#res/}"
  ref_file="${ref_file%.bad}"
  mkdir -p "$(dirname "$ref_file")"
  cp "$bad_res" "$ref_file"
done