[FFmpeg-devel] [PATCH] improve find_tests in configure

Måns Rullgård mans
Mon Jul 12 23:20:56 CEST 2010


Michael Niedermayer <michaelni at gmx.at> writes:

> Hi
>
> configure told me
> ./configure: line 329: error.orig_test=yes: command not found
>
> quick fix for that below. I guess we want to fix this differently, listing
> negatives suck, but text editors and svn itself can leave trash anywhere
> which means that just taking all files as done isnt practical ...
>
> Index: configure
> ===================================================================
> --- configure	(revision 24213)
> +++ configure	(working copy)
> @@ -1612,7 +1614,7 @@
>  FILTER_LIST=$(find_things   filter   FILTER   libavfilter/allfilters.c)
>
>  find_tests(){
> -    map 'echo ${v}_test' $(ls "$source_path"/tests/ref/$1)
> +    map 'echo ${v}_test' $(ls "$source_path"/tests/ref/$1 | egrep -v '(\.orig|~)')
>  }

Fixed a bit differently.

Note for future: egrep is not a standard POSIX command.  grep -E is
the standard way of getting extended regular expressions.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list