From: Gary V. Vaughan Date: Fri, 23 Aug 2013 12:55:27 +0000 (+0700) Subject: bootstrap: support sha1 binary on OpenBSD. X-Git-Tag: v2.4.2.418~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=049be0146e67fa9fde5c97ae87f4575752199649;p=thirdparty%2Flibtool.git bootstrap: support sha1 binary on OpenBSD. * gl/build-aux/bootstrap.in (func_update_po_files): Remove the use of --status in a way that will suppress all error messages, but since this is only used to minimize updates, it shouldn't cause an issue. Look for a sha1 binary if the other SHA1SUM settings are not found. Also exit early if there is a problem updating the po file checksums. * bootstrap: Regenerate. Ported from a gnulib patch by Padraig Brady. Signed-off-by: Gary V. Vaughan --- diff --git a/gl/build-aux/bootstrap.in b/gl/build-aux/bootstrap.in index 8678d062b..b2291be46 100755 --- a/gl/build-aux/bootstrap.in +++ b/gl/build-aux/bootstrap.in @@ -2435,7 +2435,7 @@ func_update_po_files () |$SED -e 's|.*/||' -e 's|\.po$||' > "$_G_po_dir/LINGUAS" || return # Find sha1sum, named gsha1sum on MacPorts, and shasum on MacOS 10.6+. - func_find_tool SHA1SUM sha1sum gsha1sum shasum + func_find_tool SHA1SUM sha1sum gsha1sum shasum sha1 _G_langs=`cd $_G_ref_po_dir && echo *.po|$SED 's|\.po||g'` test '*' = "$_G_langs" && _G_langs=x @@ -2445,11 +2445,11 @@ func_update_po_files () _G_cksum_file=$_G_ref_po_dir/$_G_po.s1 if ! test -f "$_G_cksum_file" || ! test -f "$_G_po_dir/$_G_po.po" || - ! $SHA1SUM -c --status "$_G_cksum_file" \ + ! $SHA1SUM -c "$_G_cksum_file" \ < "$_G_new_po" > /dev/null; then echo "updated $_G_po_dir/$_G_po.po..." cp "$_G_new_po" "$_G_po_dir/$_G_po.po" \ - && $SHA1SUM < "$_G_new_po" > "$_G_cksum_file" + && $SHA1SUM < "$_G_new_po" > "$_G_cksum_file" || return fi done }