Blame po/remove-potcdate.sin

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