From: Todd C. Miller <Todd.Miller@courtesan.com> Date: Fri, 9 Nov 2012 20:31:04 +0000 (-0500) Subject: Add the values of badpass_message, passprompt and mailsub to X-Git-Tag: SUDO_1_8_7~1^2~346 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e637ad83233b62faf24af8c91d1e73fa39ee231;p=sudo Add the values of badpass_message, passprompt and mailsub to sudoers.pot so they can be translated. --- diff --git a/Makefile.in b/Makefile.in index 69f3b9f1c..bcc940d4f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -178,11 +178,18 @@ update-pot: echo "Updating $$pot"; \ domain=`basename $$pot .pot`; \ case "$$domain" in \ - sudo) cfiles="src/*c common/*c compat/*c";; \ - sudoers) cfiles="plugins/sudoers/*.c plugins/sudoers/auth/*.c";; \ + sudo) tmpfiles=; cfiles="src/*c common/*c compat/*c";; \ + sudoers) \ + sed -n -e 's/^badpass_message="/gettext "/p' \ + -e 's/^passprompt="/gettext "/p' \ + -e 's/^mailsub="/gettext "/p' configure.in \ + > confstr.sh; \ + tmpfiles=confstr.sh; \ + cfiles="plugins/sudoers/*.c plugins/sudoers/auth/*.c";; \ *) echo unknown domain $$domain; continue;; \ esac; \ - $(XGETTEXT) $(XGETTEXT_OPTS) -d$$domain $$cfiles -o $$pot.tmp; \ + $(XGETTEXT) $(XGETTEXT_OPTS) -d$$domain $$cfiles $$tmpfiles -o $$pot.tmp; \ + test -n "$$tmpfiles" && rm -f $$tmpfiles; \ if diff -I'^.POT-Creation-Date' -I'^.Project-Id-Version' -I'^#' $$pot.tmp $$pot >/dev/null; then \ rm -f $$pot.tmp; \ else \