Blame po/remove-potcdate.sin

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