From a4a7006a138f05c1b774414a55ffb5499d7b289f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 23 Jun 2011 21:21:51 -0500 Subject: po/: split into scripts/po/ and src/pacman/po/ This is the first step at separating the pacman message catalog and the scripts message catalog. Makefiles, configure.ac, and other such files are adjusted accordingly, as well as renaming files. The TEXTDOMAIN of scripts is also adjusted. Note that no actual pot or po files get changed here; these will get pruned in a future commit so each catalog contains only the necessary messages. Signed-off-by: Dan McGee --- src/pacman/po/remove-potcdate.sin | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/pacman/po/remove-potcdate.sin (limited to 'src/pacman/po/remove-potcdate.sin') diff --git a/src/pacman/po/remove-potcdate.sin b/src/pacman/po/remove-potcdate.sin new file mode 100644 index 00000000..2436c49e --- /dev/null +++ b/src/pacman/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 v1.2.3-70-g09d2