termux-packages/x11-packages/libgtk3/gtk-3.22.30_po-properties_remove-potcdate.sin.patch
2022-04-18 14:08:05 +05:30

24 lines
750 B
Diff

diff -uNr gtk-3.22.30/po-properties/remove-potcdate.sin gtk-3.22.30.mod/po-properties/remove-potcdate.sin
--- gtk-3.22.30/po-properties/remove-potcdate.sin 1970-01-01 03:00:00.000000000 +0300
+++ gtk-3.22.30.mod/po-properties/remove-potcdate.sin 2018-06-22 20:55:46.584626256 +0300
@@ -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
+}