Blame po/remove-potcdate.sin

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