Skip to content
Snippets Groups Projects
Commit 9c5c348e authored by Mans Rullgard's avatar Mans Rullgard Committed by Michael Niedermayer
Browse files

configure: add filter_out() function


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

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit 9d201b26)
parent ac3c04e4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment