]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Copy a .po file into place also when the target doesn't exist.
authorJim Meyering <meyering@redhat.com>
Sun, 2 Dec 2007 20:02:26 +0000 (21:02 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 2 Dec 2007 20:03:42 +0000 (21:03 +0100)
* bootstrap (gnulib_tool): ... not just when the checksum differs.
So now, if I manually remove po/xx.po, rerunning bootstrap will
copy the latest into place.

Signed-off-by: Jim Meyering <meyering@redhat.com>
ChangeLog
bootstrap

index d80ef050f7c4c65b2973a0259585c93af8030e70..c921ddc619b8650c2229f8f9ada78e5bc66248d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-12-02  Jim Meyering  <meyering@redhat.com>
 
+       Copy a .po file into place also when the target doesn't exist.
+       * bootstrap (gnulib_tool): ... not just when the checksum differs.
+       So now, if I manually remove po/xx.po, rerunning bootstrap will
+       copy the latest into place.
+
        Make my-distcheck depend on "check".
        * Makefile.maint (my-distcheck): Also depend on "check", so I can't tag
        and release something that fails "make check" (however harmless) when
index a7f80bee832a9351e1fa7b1d21350c5343276e5a..7dacfe6be12674761d538206eceab86e43fdafd7 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -270,6 +270,7 @@ update_po_files() {
     new_po="$ref_po_dir/$po.po"
     cksum_file="$ref_po_dir/$po.s1"
     if ! test -f "$cksum_file" ||
+       ! test -f "$po_dir/$po.po" ||
        ! 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"