summaryrefslogtreecommitdiff
path: root/po/remove-potcdate
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-09-29 01:28:16 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-09-29 12:41:03 +0100
commit4e31e13244be1694c3725a8e463ad0494635ef30 (patch)
tree37b0aebadeea7014d038fede3ff3dcf3ae58d16d /po/remove-potcdate
parentb30764495d682a756d2b3bd13935c3be46a0d339 (diff)
i18n: Machinery in po/
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'po/remove-potcdate')
-rwxr-xr-xpo/remove-potcdate11
1 files changed, 11 insertions, 0 deletions
diff --git a/po/remove-potcdate b/po/remove-potcdate
new file mode 100755
index 0000000..069a1de
--- /dev/null
+++ b/po/remove-potcdate
@@ -0,0 +1,11 @@
+#! /usr/bin/perl -n
+
+BEGIN {
+ $seen_potcdate = 0;
+}
+
+if (not $seen_potcdate and /^"POT-Creation-Date: .*"/) {
+ $seen_potcdate = 1;
+ next;
+}
+print;