Blame po/remove-potcdate.sin

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