diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-25 14:44:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-26 03:43:31 +0100 |
commit | 9c5c348eefcef41b1d0e459348dadeeb731e8b59 (patch) | |
tree | bb87772f93bcf321e0c3a846ada3b8c573dc0561 /configure | |
parent | ac3c04e4d6532970747d92b5156839b9748adf05 (diff) | |
download | ffmpeg-9c5c348eefcef41b1d0e459348dadeeb731e8b59.tar.gz |
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 9d201b260627aacdb00e4a54622849aca11d85ee)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |