diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-01 09:28:24 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-02 13:43:57 +0100 |
commit | 4885c2ccb5a4dda71608574acce155798e23aee6 (patch) | |
tree | 2945be6e525c0d874eb3ebc3553de941116aca25 | |
parent | f671ae81df5e57148c666e1c8b252d0d661bc8ac (diff) | |
download | libguestfs-4885c2ccb5a4dda71608574acce155798e23aee6.tar.gz libguestfs-4885c2ccb5a4dda71608574acce155798e23aee6.tar.xz libguestfs-4885c2ccb5a4dda71608574acce155798e23aee6.zip |
Add po/remove-potcdate.sin to git and EXTRA_DIST.
This file is produced by gettextize and required by 'make dist'.
(cherry picked from commit 3a58a00483df9ce02d8814981e4381a5f73c9a8b)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | po/remove-potcdate.sin | 19 |
3 files changed, 20 insertions, 1 deletions
@@ -281,7 +281,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 5d30e79a..c43e28e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -170,6 +170,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 +} |