Blame po/remove-potcdate.sin

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