Blame po/remove-potcdate.sin

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