diff options
author | Jim Meyering <meyering@redhat.com> | 2007-10-04 11:55:31 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-10-04 11:55:31 +0200 |
commit | 7ba2dd808232cff3ee76aaceb97f4381c3c9cde4 (patch) | |
tree | 96aed26f43079d67475a0f03335f3edbbbf044d0 /bootstrap | |
parent | 1641186cb375df291c262f680dfc4ec1b1eb7950 (diff) | |
download | coreutils-7ba2dd808232cff3ee76aaceb97f4381c3c9cde4.tar.xz |
* bootstrap (update_po_files): Work also when there are no .po files in po/.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -281,13 +281,16 @@ update_po_files() { && ls "$ref_po_dir"/*.po 2>/dev/null | sed 's|.*/||; s|\.po$||' > "$po_dir/LINGUAS" + langs=`cd $ref_po_dir && echo *.po|sed 's/\.po//g'` + test "$langs" = '*' && langs=x for po in `cd $ref_po_dir && echo *.po|sed 's/\.po//g'`; do - 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 - echo "updated $po_dir/$po.po..." - cp "$new_po" "$po_dir/$po.po" && sha1sum < "$new_po" > "$cksum_file" - fi + 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 + echo "updated $po_dir/$po.po..." + cp "$new_po" "$po_dir/$po.po" && sha1sum < "$new_po" > "$cksum_file" + fi done } |