]> git.decadent.org.uk Git - dak.git/commitdiff
use stat
authorJoerg Jaspert <joerg@debian.org>
Sun, 11 Dec 2011 19:58:09 +0000 (20:58 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 11 Dec 2011 19:58:09 +0000 (20:58 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
scripts/debian/generate-i18n-Index

index d0a7089b0878982549394d42a9b9c204be9cf5e6..9b166bd261217e653f2c83ba8aff5aaabd2d15e4 100755 (executable)
@@ -44,7 +44,7 @@ exec 3>Index
 echo "SHA1:" >&3
 for file in Translation-* ; 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