Blame po/remove-potcdate.sin

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