Browse Source

configure: add filter_out() function

This adds a function to filter out words matching a pattern
from a list.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 9d201b2606)
tags/n0.8
Mans Rullgard Michael Niedermayer 15 years ago
parent
commit
9c5c348eef
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      configure

+ 8
- 0
configure View File

@@ -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


Loading…
Cancel
Save