From 9d201b260627aacdb00e4a54622849aca11d85ee Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Tue, 25 Jan 2011 14:44:07 +0000 Subject: [PATCH] configure: add filter_out() function This adds a function to filter out words matching a pattern from a list. Signed-off-by: Mans Rullgard --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 70b18b3b05..51e1172775 100755 --- a/configure +++ b/configure @@ -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