[MPlayer-cvslog] r34532 - trunk/tests/refupdate.sh
reimar
subversion at mplayerhq.hu
Sun Jan 8 11:44:01 CET 2012
Author: reimar
Date: Sun Jan 8 11:44:00 2012
New Revision: 34532
Log:
Add a script to help update the references.
Added:
trunk/tests/refupdate.sh (contents, props changed)
Added: trunk/tests/refupdate.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/tests/refupdate.sh Sun Jan 8 11:44:00 2012 (r34532)
@@ -0,0 +1,8 @@
+#!/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
More information about the MPlayer-cvslog
mailing list