[MPlayer-cvslog] r34532 - trunk/tests/refupdate.sh
Alexander Strasser
eclipse7 at gmx.net
Sun Jan 8 16:00:49 CET 2012
Hi Reimar,
reimar wrote:
> 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")
Besides that I would also have also put double quotes around the
command expansion, you missed a dollar sign in front of ref_file.
BTW you missed it while testing because "ref_file"'s directory is "."
and that is always already existing but mkdir didn't complain because
of the -p option.
[...]
Alexander
More information about the MPlayer-cvslog
mailing list