]> granicus.if.org Git - sudo/commitdiff
Fill in the comment block at the top of the .pot files and preserve
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Jan 2013 22:08:49 +0000 (17:08 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 11 Jan 2013 22:08:49 +0000 (17:08 -0500)
it when regenerating them.

Makefile.in
plugins/sudoers/po/sudoers.pot
src/po/sudo.pot

index 52bb66c68076a176f92e407a68f24304f11f0d11..25afe75316ee860102d75f2989fff7ebdb565120 100644 (file)
@@ -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
index faf30ee5f18c59dc6e79537880172ea590c22556..4c4be34153211bd7eef7157d13b73de1749f4869 100644 (file)
@@ -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 <EMAIL@ADDRESS>, YEAR.
+# Todd C. Miller <Todd.Miller@courtesan.com>, 2011-2013
 #
 #, fuzzy
 msgid ""
index 4f3731d05d70107230d1cf468d9af41f8284f892..23fcaeabecf32477ee0193027fc1609698ea693a 100644 (file)
@@ -1,6 +1,6 @@
-# SOME DESCRIPTIVE TITLE.
+# Portable object template file for sudo
 # This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+# Todd C. Miller <Todd.Miller@courtesan.com>, 2011-2013
 #
 #, fuzzy
 msgid ""