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
17 echo "Usage: $0 <dist-directory>" >&2
25 if [ ! -d "$1" ] ; then
26 echo "$1 does not exist or is not a directory." >&2
29 if [ ! -d "$1"/main/i18n ] ; then
30 echo "No main/i18n directory in $1." >&2
35 # If it's trapped, something bad happened.
40 trap trap_exit EXIT HUP INT QUIT TERM
45 for file in Translation-* ; do
46 sha=$(sha1sum "$file"); sha="${sha%% *}"
47 size=$(stat -c %s "${file}")
48 printf ' %s % 7s %s\n' "$sha" "$size" "$file" >&3