Blame po/remove-potcdate.sin

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