aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-07-25 01:16:30 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-25 23:46:56 +0100
commit2b82c24a6b0148d1cc548605eab9be85f356ab6d (patch)
treefbb0954d7f57230357cbb431d386aba1a0b63694 /meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin
parent450f4597d491789b0680940218e0e0bee7104ada (diff)
downloadopenembedded-core-contrib-2b82c24a6b0148d1cc548605eab9be85f356ab6d.tar.gz
gettext-minimal-native: 0.19.4 -> 0.19.8.1
How to upgrade gettext-minimal-native: - Build gettext-native - Copy gettext-runtime/po/Makefile.in.in, build-aux/config.rpath and gettext-runtime/po/remove-potcdate.sin from gettext-native. - Update COPYING when needed (usually update the year), do not copy the whole COPYING file from gettext-native. - Go to gettext-native's ${S}/gettext-runtime/m4: > Remove lt*.m4 and libtool.m4 > copy lib-ld.m4 lib-link.m4 lib-prefix.m4 from ${S}/gettext-runtime/gnulib-m4/ > tar czvf /path/to/aclocal.tgz *.m4 Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin')
-rw-r--r--meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin b/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin
new file mode 100644
index 0000000000..2436c49e78
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/remove-potcdate.sin
@@ -0,0 +1,19 @@
+# Sed script that remove the POT-Creation-Date line in the header entry
+# from a POT file.
+#
+# The distinction between the first and the following occurrences of the
+# pattern is achieved by looking at the hold space.
+/^"POT-Creation-Date: .*"$/{
+x
+# Test if the hold space is empty.
+s/P/P/
+ta
+# Yes it was empty. First occurrence. Remove the line.
+g
+d
+bb
+:a
+# The hold space was nonempty. Following occurrences. Do nothing.
+x
+:b
+}