Blame po/remove-potcdate.sin

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