1a32e9e42Smrg# Sed script that remove the POT-Creation-Date line in the header entry
2a32e9e42Smrg# from a POT file.
3a32e9e42Smrg#
4a32e9e42Smrg# The distinction between the first and the following occurrences of the
5a32e9e42Smrg# pattern is achieved by looking at the hold space.
6a32e9e42Smrg/^"POT-Creation-Date: .*"$/{
7a32e9e42Smrgx
8a32e9e42Smrg# Test if the hold space is empty.
9a32e9e42Smrgs/P/P/
10a32e9e42Smrgta
11a32e9e42Smrg# Yes it was empty. First occurrence. Remove the line.
12a32e9e42Smrgg
13a32e9e42Smrgd
14a32e9e42Smrgbb
15a32e9e42Smrg:a
16a32e9e42Smrg# The hold space was nonempty. Following occurrences. Do nothing.
17a32e9e42Smrgx
18a32e9e42Smrg:b
19a32e9e42Smrg}
20