Blame po/remove-potcdate.sin

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