From 6ae6e18d5fc677d72aad050fd6bb8323836dd929 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 13 Apr 2007 11:45:05 +0000 Subject: g10/ and sm/ * call-agent.c (start_agent): Don't use log_error when using the fallback hack to start the agent. This is bug 782. scripts/ * mail-to-translators: Copied from 1.4. and adjusted. tools/ * gpgconf-comp.c: Allow changing of --allow-mark-trusted. * gpg-connect-agent.c (main): New option --decode and commands decode and undecode. (read_and_print_response): Implement option. --- scripts/ChangeLog | 4 +++ scripts/mail-to-translators | 79 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100755 scripts/mail-to-translators (limited to 'scripts') diff --git a/scripts/ChangeLog b/scripts/ChangeLog index 5c8b95c8c..2f8e8521a 100644 --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-04-04 Werner Koch + + * mail-to-translators: Copied from 1.4. and adjusted. + 2004-09-30 Werner Koch * config.guess, config.sub: Updated. diff --git a/scripts/mail-to-translators b/scripts/mail-to-translators new file mode 100755 index 000000000..3df59ad7b --- /dev/null +++ b/scripts/mail-to-translators @@ -0,0 +1,79 @@ +#!/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" + +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 a short note to +gnupg-hackers@gnupg.org . + + +Thanks, + + 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 + -- cgit v1.2.3