[FFmpeg-cvslog] configure: add cleanws() function
Mans Rullgard
git
Tue Feb 15 00:59:10 CET 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Feb 13 13:06:53 2011 +0000| [8429368d22e3dc046b1ec0311c292e0e70ee1a9d] | committer: Michael Niedermayer
configure: add cleanws() function
This function removes leading and trailing spaces and collapses
multiple spaces into one.
Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit bb7a22b5840e56c034227ad596b1165c03f2da27)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8429368d22e3dc046b1ec0311c292e0e70ee1a9d
---
configure | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 8a32709..238bf01 100755
--- a/configure
+++ b/configure
@@ -313,6 +313,10 @@ sh_quote(){
echo "$v"
}
+cleanws(){
+ echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
+}
+
filter(){
pat=$1
shift
More information about the ffmpeg-cvslog
mailing list