Blame po/remove-potcdate.sin

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