Blame po/remove-potcdate.sin

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