summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-24 22:32:48 +0200
committerJim Meyering <meyering@redhat.com>2007-10-24 22:32:48 +0200
commitcd6b82c92ab80f1bdaf99c9b92ba17d98b07049a (patch)
tree9546354f1fa4186306bb2b447fa08ad2fdc3d1d8 /build-aux
parentbc960df8c789c878f1c1c54a28a3c2648dead8d9 (diff)
downloadgnulib-cd6b82c92ab80f1bdaf99c9b92ba17d98b07049a.tar.gz
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.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/bootstrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 22e3a41f5e..889a2d2b13 100755
--- a/build-aux/bootstrap
+++ b/build-aux/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