]> granicus.if.org Git - sudo/commitdiff
Pull additional password prompts out of mkpkg instead of hard-coding
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 27 Sep 2014 16:39:07 +0000 (10:39 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 27 Sep 2014 16:39:07 +0000 (10:39 -0600)
them.

Makefile.in

index 2fc590b4f83f4c37608731a0fc0076e7633f1c4a..094b4c98a04a77766f6ec039516ee1a7546725a6 100644 (file)
@@ -193,8 +193,7 @@ update-pot:
                    sudo) tmpfiles=; cfiles="src/*c lib/*/*c";; \
                    sudoers) \
                        echo "gettext \"syntax error\"" > confstr.sh; \
-                       echo "gettext \"[sudo] password for %p: \"" >> confstr.sh; \
-                       echo "gettext \"%p's password: \"" >> confstr.sh; \
+                       $(SED) -n 's/^.*--with-passprompt=\(.*\)$$/gettext \"\1\"/p' mkpkg | sort -u >> confstr.sh; \
                        $(SED) -n -e 's/^badpass_message="/gettext "/p' \
                            -e 's/^passprompt="/gettext "/p' \
                            -e 's/^mailsub="/gettext "/p' configure.ac \