#!/bin/sh # mail a compressed version of the current translation to the Last-Translator # # remove the colon to armor this script. SENDMAIL=": /usr/sbin/sendmail" LC_ALL=C LC_CTYPE=C for file in *.po; do addr=$(head -100 $file | awk '/^# ?Designated-Translator:/ { printf "%s", $0; exit 0}' | sed 's/.*\(<.*>\).*/\1/') if [ -z "$addr" ]; then addr=$(awk '/Last-Translator:/ { printf "%s", $0; exit 0}' $file | sed 's/.*\(<.*>\).*/\1/') fi ll=$(basename $file .po) if ! msgfmt -vc $file 2>&1| egrep -q 'fuzzy|untranslated|error'; then echo "$file: okay" >&2 continue; fi if ! echo "$addr" | grep -q @ ; then echo "$file: no translator known" >&2 continue; fi echo "$file: sending to $addr" ( cat <&1 | head) If you are not able to continue the translation work, I suggest to pass this message on to another translator and drop a short note to gnupg-hackers@gnupg.org . Happy hacking, Werner --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=gnupg-${file}.bz2 Content-Transfer-Encoding: base64 EOF bzip2 <$file | mimencode echo "" echo "--=-=-=--" echo "" ) | $SENDMAIL -oi "$addr" done