diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-25 14:44:07 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-25 20:32:08 +0000 |
commit | 9d201b260627aacdb00e4a54622849aca11d85ee (patch) | |
tree | a02f964487b7670b3204e920434f61f792e74c0c /configure | |
parent | 44002d8323023c35f51d523a7d305e45103ba7a1 (diff) | |
download | ffmpeg-9d201b260627aacdb00e4a54622849aca11d85ee.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>
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 |