Blame po/remove-potcdate.sin

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