summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-12-02 21:02:26 +0100
committerJim Meyering <meyering@redhat.com>2007-12-02 21:03:42 +0100
commitecec47635a1d255a8588685a5b8a4d933115ba77 (patch)
tree06b018e5298d947d54b757e51fc5428a6223c344 /bootstrap
parent681dc1ee014e4726954f0f50d8bced5452698932 (diff)
downloadcoreutils-ecec47635a1d255a8588685a5b8a4d933115ba77.tar.xz
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. Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index a7f80bee8..7dacfe6be 100755
--- 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"