Blame po/remove-potcdate.sin

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