]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Move po/remove-potcdate.sin to gettext-runtime/po/remove-potcdate.sin and gettext...
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2003 13:57:59 +0000 (13:57 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:09:30 +0000 (12:09 +0200)
gettext-runtime/po/remove-potcdate.sin [moved from po/remove-potcdate.sin with 100% similarity]
gettext-tools/po/remove-potcdate.sin [new file with mode: 0644]

diff --git a/gettext-tools/po/remove-potcdate.sin b/gettext-tools/po/remove-potcdate.sin
new file mode 100644 (file)
index 0000000..2436c49
--- /dev/null
@@ -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
+}