Blame po/remove-potcdate.sin

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