X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fgenerate-i18n-Index;h=75a575856f394d95a42dd54444a58072d816fe52;hb=555ead275da590d2325c2fa4ef2652547100d72b;hp=d0a7089b0878982549394d42a9b9c204be9cf5e6;hpb=d1b9fb11b2adefa328f8ea41c59b835e148c6f8e;p=dak.git diff --git a/scripts/debian/generate-i18n-Index b/scripts/debian/generate-i18n-Index index d0a7089b..75a57585 100755 --- a/scripts/debian/generate-i18n-Index +++ b/scripts/debian/generate-i18n-Index @@ -10,7 +10,8 @@ # On Debian systems, you can find the full text of the license in # /usr/share/common-licenses/GPL-2 -set -eu +set -e +set -u export LC_ALL=C usage () { @@ -42,9 +43,9 @@ trap trap_exit EXIT HUP INT QUIT TERM exec 3>Index echo "SHA1:" >&3 -for file in Translation-* ; do +for file in Translation-*.bz2 ; do sha=$(sha1sum "$file"); sha="${sha%% *}" - size=$(du --bytes "$file"); size="${size%%[^0-9]*}" + size=$(stat -c %s "${file}") printf ' %s % 7s %s\n' "$sha" "$size" "$file" >&3 done