Commit bb7a22b5 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

configure: add cleanws() function



This function removes leading and trailing spaces and collapses
multiple spaces into one.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent e6b1ed69
......@@ -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