jpayne@68: # Sed script that removes the POT-Creation-Date line in the header entry jpayne@68: # from a POT file. jpayne@68: # jpayne@68: # Copyright (C) 2002 Free Software Foundation, Inc. jpayne@68: # Copying and distribution of this file, with or without modification, jpayne@68: # are permitted in any medium without royalty provided the copyright jpayne@68: # notice and this notice are preserved. This file is offered as-is, jpayne@68: # without any warranty. jpayne@68: # jpayne@68: # The distinction between the first and the following occurrences of the jpayne@68: # pattern is achieved by looking at the hold space. jpayne@68: /^"POT-Creation-Date: .*"$/{ jpayne@68: x jpayne@68: # Test if the hold space is empty. jpayne@68: s/P/P/ jpayne@68: ta jpayne@68: # Yes it was empty. First occurrence. Remove the line. jpayne@68: g jpayne@68: d jpayne@68: bb jpayne@68: :a jpayne@68: # The hold space was nonempty. Following occurrences. Do nothing. jpayne@68: x jpayne@68: :b jpayne@68: }