]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid diagnostics from sha1sum when there is no cached checksum.
authorJim Meyering <meyering@redhat.com>
Wed, 24 Oct 2007 20:31:35 +0000 (22:31 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 24 Oct 2007 20:31:35 +0000 (22:31 +0200)
* bootstrap (update_po_files): Skip the sha1sum check if the po.s1
file hasn't been created yet.

ChangeLog
bootstrap

index 2e9fd9d8356e41799aac62978c94a27624c69f99..9377791150920822d7bbdf4df0c9f867dfc8c370 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-10-24  Jim Meyering  <meyering@redhat.com>
 
+       Avoid diagnostics from sha1sum when there is no cached checksum.
+       * bootstrap (update_po_files): Skip the sha1sum check if the po.s1
+       file hasn't been created yet.
+
        Get gnulib from the git repository, not from an obsolete cvs one.
        * bootstrap: Suggestion from Micah Cowan.
 
index 22e3a41f5ebe404f75dbe61428c4611024f827a9..889a2d2b13d920aaf44dda52706544e0e4710209 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -286,7 +286,8 @@ update_po_files() {
     case $po in x) continue;; esac
     new_po="$ref_po_dir/$po.po"
     cksum_file="$ref_po_dir/$po.s1"
-    if ! sha1sum -c --status "$cksum_file" < "$new_po" > /dev/null; then
+    if ! test -f "$cksum_file" ||
+       ! sha1sum -c --status "$cksum_file" < "$new_po" > /dev/null; then
       echo "updated $po_dir/$po.po..."
       cp "$new_po" "$po_dir/$po.po" && sha1sum < "$new_po" > "$cksum_file"
     fi