Browse Source

configure: add cleanws() function

This function removes leading and trailing spaces and collapses
multiple spaces into one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n0.8
Mans Rullgard 14 years ago
parent
commit
bb7a22b584
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      configure

+ 4
- 0
configure View File

@@ -313,6 +313,10 @@ sh_quote(){
echo "$v" echo "$v"
} }


cleanws(){
echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
}

filter(){ filter(){
pat=$1 pat=$1
shift shift


Loading…
Cancel
Save