Blame po/remove-potcdate.sin

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