Blame po/remove-potcdate.sin

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