[FFmpeg-devel] [PATCH 1/2] configure: add cleanws() function
Diego Biurrun
diego
Sun Feb 13 15:43:27 CET 2011
On Sun, Feb 13, 2011 at 01:17:58PM +0000, Mans Rullgard wrote:
> This function removes leading and trailing spaces and collapses
> multiple spaces into one.
>
> Signed-off-by: Mans Rullgard <mans at mansr.com>
> --- a/configure
> +++ b/configure
> @@ -313,6 +313,10 @@ sh_quote(){
>
> +cleanws(){
> + echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//'
> +}
OK, I would slightly prefer clean_whitespace as name though.
Diego
More information about the ffmpeg-devel
mailing list