* Gary V. Vaughan wrote on Tue, Aug 31, 2010 at 08:43:17AM CEST:
> * libltdl/config/announce-gen.m4sh (func_print_locations): Don't
> bail out or print garbage when trying to find the size of a
> non-existent file.
OK thanks. While you're at it, TAB before space is a little less likely
to be garbage-collected by editors.
The summary lines of the commit entry and the ChangeLog entry of this
patch do not match the detailed explanation nor the actual patch though.
Cheers,
Ralf
> --- a/libltdl/config/announce-gen.m4sh
> +++ b/libltdl/config/announce-gen.m4sh
> @@ -267,8 +267,12 @@ func_print_locations ()
> echo "Here are the $1:"
> echo
> for my_file in $3; do
> - my_size=`$DU -h $my_file|sed 's,[bB]*[ ].*$,,'`
> - echo " $2/$my_file (${my_size}B)"
> + if test -f "$my_file"; then
> + my_size=" (`$DU -h $my_file|sed 's,[bB]*[ ].*$,,'`B)"
> + else
> + my_size=""
> + fi
> + echo " $2/$my_file$my_size"
> done
> }
>