Blame po/remove-potcdate.sin

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