Commit 8429368d authored by Mans Rullgard's avatar Mans Rullgard Committed by Michael Niedermayer

configure: add cleanws() function

This function removes leading and trailing spaces and collapses
multiple spaces into one.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit bb7a22b5)
parent 11ab1e40
......@@ -313,6 +313,10 @@ sh_quote(){
echo "$v"
}
cleanws(){
echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
}
filter(){
pat=$1
shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment