Blame po/remove-potcdate.sin

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