Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -313,6 +313,10 @@ sh_quote(){
echo "$v"
}
cleanws(){
echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
}
filter(){
pat=$1
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment