From: Todd C. Miller Date: Fri, 11 Jan 2013 22:08:49 +0000 (-0500) Subject: Fill in the comment block at the top of the .pot files and preserve X-Git-Tag: SUDO_1_8_7~1^2~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70976f30eadb135d6be6cff6ae88d7e48d6ee739;p=sudo Fill in the comment block at the top of the .pot files and preserve it when regenerating them. --- diff --git a/Makefile.in b/Makefile.in index 52bb66c68..25afe7531 100644 --- a/Makefile.in +++ b/Makefile.in @@ -194,7 +194,9 @@ update-pot: if diff -I'^.POT-Creation-Date' -I'^.Project-Id-Version' -I'^#' $$pot.tmp $$pot >/dev/null; then \ rm -f $$pot.tmp; \ else \ - mv -f $$pot.tmp $$pot; \ + printf '/^#$$/+1,$$d\nw\nq\n' | ed - $$pot; \ + sed '1,/^#$$/d' $$pot.tmp >> $$pot; \ + rm -f $$pot.tmp; \ fi; \ done; \ fi diff --git a/plugins/sudoers/po/sudoers.pot b/plugins/sudoers/po/sudoers.pot index faf30ee5f..4c4be3415 100644 --- a/plugins/sudoers/po/sudoers.pot +++ b/plugins/sudoers/po/sudoers.pot @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. +# Portable object template file for the sudoers plugin # This file is put in the public domain. -# FIRST AUTHOR , YEAR. +# Todd C. Miller , 2011-2013 # #, fuzzy msgid "" diff --git a/src/po/sudo.pot b/src/po/sudo.pot index 4f3731d05..23fcaeabe 100644 --- a/src/po/sudo.pot +++ b/src/po/sudo.pot @@ -1,6 +1,6 @@ -# SOME DESCRIPTIVE TITLE. +# Portable object template file for sudo # This file is put in the public domain. -# FIRST AUTHOR , YEAR. +# Todd C. Miller , 2011-2013 # #, fuzzy msgid ""