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