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>
This commit is contained in:
Mans Rullgard 2011-01-25 14:44:07 +00:00
parent 44002d8323
commit 9d201b2606

8
configure vendored
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