Blame po/remove-potcdate.sin

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