Blame po/remove-potcdate.sin

rpm-build 858c0f
# Sed script that remove the POT-Creation-Date line in the header entry
rpm-build 858c0f
# from a POT file.
rpm-build 858c0f
#
rpm-build 858c0f
# The distinction between the first and the following occurrences of the
rpm-build 858c0f
# pattern is achieved by looking at the hold space.
rpm-build 858c0f
/^"POT-Creation-Date: .*"$/{
rpm-build 858c0f
x
rpm-build 858c0f
# Test if the hold space is empty.
rpm-build 858c0f
s/P/P/
rpm-build 858c0f
ta
rpm-build 858c0f
# Yes it was empty. First occurrence. Remove the line.
rpm-build 858c0f
g
rpm-build 858c0f
d
rpm-build 858c0f
bb
rpm-build 858c0f
:a
rpm-build 858c0f
# The hold space was nonempty. Following occurrences. Do nothing.
rpm-build 858c0f
x
rpm-build 858c0f
:b
rpm-build 858c0f
}