From: Gary V. Vaughan <g...@gnu.org> * 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.
Signed-off-by: Gary V. Vaughan <g...@gnu.org> --- ChangeLog | 7 +++++++ libltdl/config/announce-gen.m4sh | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 49fe694..b8dc314 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-08-29 Gary V. Vaughan <g...@gnu.org> + + Support missing detached signatures, like gnulib implementation. + * 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. + 2010-08-27 Gary V. Vaughan <g...@gnu.org> Fix partial commit support. diff --git a/libltdl/config/announce-gen.m4sh b/libltdl/config/announce-gen.m4sh index fafa2c7..1e24ca9 100644 --- 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 } -- 1.7.2.2