Blame po/remove-potcdate.sin

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