libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/6] Support missing detached signatures, like gnulib implementat


From: Gary V. Vaughan
Subject: [PATCH 3/6] Support missing detached signatures, like gnulib implementation.
Date: Tue, 31 Aug 2010 13:43:17 +0700

From: Gary V. Vaughan <address@hidden>

* 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 <address@hidden>
---
 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  <address@hidden>
+
+       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  <address@hidden>
 
        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]