csomh / source-git / rpm

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