summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-24 22:31:35 +0200
committerJim Meyering <meyering@redhat.com>2007-10-24 22:31:35 +0200
commitedb5faa2970d57681ae9ba41d98df7f210d82587 (patch)
treef6cb64d681b2f70d2a2ffe10acef84c44a4c3667 /bootstrap
parent0edca4f61fa3257d2f1670d03c3d00b65b219939 (diff)
downloadcoreutils-edb5faa2970d57681ae9ba41d98df7f210d82587.tar.xz
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.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 22e3a41f5..889a2d2b1 100755
--- 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