Blame po/remove-potcdate.sin

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