Home | History | Annotate | Line # | Download | only in po
      1  1.1  christos # Sed script that remove the POT-Creation-Date line in the header entry
      2  1.1  christos # from a POT file.
      3  1.1  christos #
      4  1.1  christos # The distinction between the first and the following occurrences of the
      5  1.1  christos # pattern is achieved by looking at the hold space.
      6  1.1  christos /^"POT-Creation-Date: .*"$/{
      7  1.1  christos x
      8  1.1  christos # Test if the hold space is empty.
      9  1.1  christos s/P/P/
     10  1.1  christos ta
     11  1.1  christos # Yes it was empty. First occurrence. Remove the line.
     12  1.1  christos g
     13  1.1  christos d
     14  1.1  christos bb
     15  1.1  christos :a
     16  1.1  christos # The hold space was nonempty. Following occurrences. Do nothing.
     17  1.1  christos x
     18  1.1  christos :b
     19  1.1  christos }
     20