From 98d7b3eee951b454e46e34d491e729dac869e36f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 14 Feb 2003 14:03:21 +0000 Subject: Move projects/TP/team-address to gettext-tools/projects/TP/team-address. --- gettext-tools/projects/TP/team-address | 60 ++++++++++++++++++++++++++++++++++ projects/TP/team-address | 60 ---------------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) create mode 100755 gettext-tools/projects/TP/team-address delete mode 100755 projects/TP/team-address diff --git a/gettext-tools/projects/TP/team-address b/gettext-tools/projects/TP/team-address new file mode 100755 index 0000000..c177c1e --- /dev/null +++ b/gettext-tools/projects/TP/team-address @@ -0,0 +1,60 @@ +#!/bin/sh +# Print the team's address (to stdout) and output additional instructions +# (to stderr). +projectsdir="$1" +progdir="$2" +catalog="$3" # e.g. "pt_BR" +language="$4" # e.g. "pt" + +url=`cat "$projectsdir/TP/teams.url"` +html=`"$progdir/urlget" "$url" "$projectsdir/TP/teams.html"` +sed_addnl='s,,\ +,g' +address=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$catalog[^<>]*[^|]*[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` +if test -n "$address"; then + case "$address" in + mailto:*) address=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;; + esac + (echo "Please visit your translation team's homepage at" + echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$catalog[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` + echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" + echo "and consider joining your translation team's mailing list" + echo " $address" + ) 1>&2 + echo "$address" + exit 0 +fi +address=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$language[^<>]*[^|]*[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` +if test -n "$address"; then + case "$address" in + mailto:*) address=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;; + esac + (echo "A translation team exists for your language ($language) but not for" + echo "your local dialect ($catalog). You can either join the existing" + echo "translation team for $language or create a new translation team for $catalog." + echo + echo "Please visit the existing translation team's homepage at" + echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$language[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` + echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" + echo "and consider joining the translation team's mailing list" + echo " $address" + echo + echo "If you want to create a new translation team for $catalog, please visit" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" + ) 1>&2 + echo "$address" + exit 0 +fi +(echo "A translation team for your language ($language) does not exist yet." + echo "If you want to create a new translation team for $language"`test "$catalog" = "$language" || echo " or $catalog"`", please visit" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html" + echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" +) 1>&2 +exit 0 diff --git a/projects/TP/team-address b/projects/TP/team-address deleted file mode 100755 index c177c1e..0000000 --- a/projects/TP/team-address +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# Print the team's address (to stdout) and output additional instructions -# (to stderr). -projectsdir="$1" -progdir="$2" -catalog="$3" # e.g. "pt_BR" -language="$4" # e.g. "pt" - -url=`cat "$projectsdir/TP/teams.url"` -html=`"$progdir/urlget" "$url" "$projectsdir/TP/teams.html"` -sed_addnl='s,,\ -,g' -address=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$catalog[^<>]*[^|]*[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` -if test -n "$address"; then - case "$address" in - mailto:*) address=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;; - esac - (echo "Please visit your translation team's homepage at" - echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$catalog[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` - echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" - echo "and consider joining your translation team's mailing list" - echo " $address" - ) 1>&2 - echo "$address" - exit 0 -fi -address=`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$language[^<>]*[^|]*[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` -if test -n "$address"; then - case "$address" in - mailto:*) address=`echo "$address" | sed -e 's,^mailto:,<,' -e 's,$,>,'` ;; - esac - (echo "A translation team exists for your language ($language) but not for" - echo "your local dialect ($catalog). You can either join the existing" - echo "translation team for $language or create a new translation team for $catalog." - echo - echo "Please visit the existing translation team's homepage at" - echo " "`echo "$html" | tr '\012' '|' | sed -e "$sed_addnl" | sed -n -e "s,^.*$language[^<>]*[^<>]*.*\$,\\1,p" | sed 1q` - echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/translators.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" - echo "and consider joining the translation team's mailing list" - echo " $address" - echo - echo "If you want to create a new translation team for $catalog, please visit" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" - ) 1>&2 - echo "$address" - exit 0 -fi -(echo "A translation team for your language ($language) does not exist yet." - echo "If you want to create a new translation team for $language"`test "$catalog" = "$language" || echo " or $catalog"`", please visit" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/teams.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html" - echo " http://www.iro.umontreal.ca/contrib/po/HTML/index.html" -) 1>&2 -exit 0 -- cgit v1.1