Blame po/remove-potcdate.sin

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