Commit cd6b82c9 authored by Jim Meyering's avatar Jim Meyering

Avoid diagnostics from sha1sum when there is no cached checksum.

* build-aux/bootstrap (update_po_files): Skip the sha1sum check
if the po.s1 file hasn't been created yet.
parent bc960df8
2007-10-24 Jim Meyering <meyering@redhat.com>
Avoid diagnostics from sha1sum when there is no cached checksum.
* build-aux/bootstrap (update_po_files): Skip the sha1sum check
if the po.s1 file hasn't been created yet.
* build-aux/bootstrap: Sync from coreutils:
2007-10-24 Jim Meyering <meyering@redhat.com>
Get gnulib from the git repository, not from an obsolete cvs one.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment