1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 18:26:32 +02:00

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.
This commit is contained in:
Jim Meyering
2007-10-24 22:31:35 +02:00
parent 0edca4f61f
commit edb5faa297
2 changed files with 6 additions and 1 deletions

View File

@@ -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.

View File

@@ -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