[FFmpeg-devel] [PATCH 1/2] configure: add filter_out() function

Janne Grunau janne-ffmpeg
Tue Jan 25 21:31:13 CET 2011


On Tue, Jan 25, 2011 at 02:45:35PM +0000, Mans Rullgard wrote:
> This adds a function to filter out words matching a pattern
> from a list.
> 
> Signed-off-by: Mans Rullgard <mans at mansr.com>
> ---
>  configure |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/configure b/configure
> index 70b18b3..51e1172 100755
> --- a/configure
> +++ b/configure
> @@ -321,6 +321,14 @@ filter(){
>      done
>  }
>  
> +filter_out(){
> +    pat=$1
> +    shift
> +    for v; do
> +        eval "case $v in $pat) ;; *) echo $v ;; esac"
> +    done
> +}
> +
>  map(){
>      m=$1
>      shift

ok

Janne



More information about the ffmpeg-devel mailing list