Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gettext/po/remove-potcdate.sin @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@68 | 1 # Sed script that removes the POT-Creation-Date line in the header entry |
jpayne@68 | 2 # from a POT file. |
jpayne@68 | 3 # |
jpayne@68 | 4 # Copyright (C) 2002 Free Software Foundation, Inc. |
jpayne@68 | 5 # Copying and distribution of this file, with or without modification, |
jpayne@68 | 6 # are permitted in any medium without royalty provided the copyright |
jpayne@68 | 7 # notice and this notice are preserved. This file is offered as-is, |
jpayne@68 | 8 # without any warranty. |
jpayne@68 | 9 # |
jpayne@68 | 10 # The distinction between the first and the following occurrences of the |
jpayne@68 | 11 # pattern is achieved by looking at the hold space. |
jpayne@68 | 12 /^"POT-Creation-Date: .*"$/{ |
jpayne@68 | 13 x |
jpayne@68 | 14 # Test if the hold space is empty. |
jpayne@68 | 15 s/P/P/ |
jpayne@68 | 16 ta |
jpayne@68 | 17 # Yes it was empty. First occurrence. Remove the line. |
jpayne@68 | 18 g |
jpayne@68 | 19 d |
jpayne@68 | 20 bb |
jpayne@68 | 21 :a |
jpayne@68 | 22 # The hold space was nonempty. Following occurrences. Do nothing. |
jpayne@68 | 23 x |
jpayne@68 | 24 :b |
jpayne@68 | 25 } |