[Top][All Lists]
[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
- Backport non-gnulib dependent parts of my use-gnulib topic branch, Gary V. Vaughan, 2010/08/31
- [PATCH 1/6] Add --gnulib-version and --news options to announce-gen., Gary V. Vaughan, 2010/08/31
- [PATCH 2/6] Fix partial commit support., Gary V. Vaughan, 2010/08/31
- [PATCH 3/6] Support missing detached signatures, like gnulib implementation.,
Gary V. Vaughan <=
- [PATCH 4/6] Rewrite bootstrap script for consistency with our other shell code., Gary V. Vaughan, 2010/08/31
- [PATCH 6/6] Simplify and improve safety of bootstrap process., Gary V. Vaughan, 2010/08/31
- [PATCH 5/6] Don't leak developer GREP, SED etc into distribution file., Gary V. Vaughan, 2010/08/31