3 # Copyright (C) 2011, Ansgar Burchardt <ansgar@debian.org>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # On Debian systems, you can find the full text of the license in
11 # /usr/share/common-licenses/GPL-2
18 echo "Usage: $0 <dist-directory>" >&2
26 if [ ! -d "$1" ] ; then
27 echo "$1 does not exist or is not a directory." >&2
30 if [ ! -d "$1"/main/i18n ] ; then
31 echo "No main/i18n directory in $1." >&2
36 # If it's trapped, something bad happened.
41 trap trap_exit EXIT HUP INT QUIT TERM
46 for file in Translation-*.bz2 ; do
47 sha=$(sha1sum "$file"); sha="${sha%% *}"
48 size=$(stat -c %s "${file}")
49 printf ' %s % 7s %s\n' "$sha" "$size" "$file" >&3