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)
This commit is contained in:
parent
ac3c04e4d6
commit
9c5c348eef
1 changed files with 8 additions and 0 deletions
8
configure
vendored
8
configure
vendored
|
|
@ -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…
Add table
Add a link
Reference in a new issue