From 3a58a00483df9ce02d8814981e4381a5f73c9a8b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 1 Apr 2012 09:28:24 +0100 Subject: Add po/remove-potcdate.sin to git and EXTRA_DIST. This file is produced by gettextize and required by 'make dist'. --- .gitignore | 1 - Makefile.am | 1 + po/remove-potcdate.sin | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 po/remove-potcdate.sin diff --git a/.gitignore b/.gitignore index 337ff751..601225cc 100644 --- a/.gitignore +++ b/.gitignore @@ -287,7 +287,6 @@ po/Makevars.template po/POTFILES po/quot.sed po/remove-potcdate.sed -po/remove-potcdate.sin po/Rules-quot po/stamp-it po/stamp-po diff --git a/Makefile.am b/Makefile.am index 5f104fa9..9714c334 100644 --- a/Makefile.am +++ b/Makefile.am @@ -139,6 +139,7 @@ EXTRA_DIST = \ libtool-kill-dependency_libs.sh \ logo/fish.svg logo/fish.png \ m4/.gitignore \ + po/remove-potcdate.sin \ update-bugs.sh # The website. diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin new file mode 100644 index 00000000..2436c49e --- /dev/null +++ b/po/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 +} -- cgit