Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gettext/po/insert-header.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 inserts the file called HEADER before the header entry. |
jpayne@68 | 2 # |
jpayne@68 | 3 # Copyright (C) 2001 Free Software Foundation, Inc. |
jpayne@68 | 4 # Written by Bruno Haible <bruno@clisp.org>, 2001. |
jpayne@68 | 5 # This file is free software; the Free Software Foundation gives |
jpayne@68 | 6 # unlimited permission to use, copy, distribute, and modify it. |
jpayne@68 | 7 # |
jpayne@68 | 8 # At each occurrence of a line starting with "msgid ", we execute the following |
jpayne@68 | 9 # commands. At the first occurrence, insert the file. At the following |
jpayne@68 | 10 # occurrences, do nothing. The distinction between the first and the following |
jpayne@68 | 11 # occurrences is achieved by looking at the hold space. |
jpayne@68 | 12 /^msgid /{ |
jpayne@68 | 13 x |
jpayne@68 | 14 # Test if the hold space is empty. |
jpayne@68 | 15 s/m/m/ |
jpayne@68 | 16 ta |
jpayne@68 | 17 # Yes it was empty. First occurrence. Read the file. |
jpayne@68 | 18 r HEADER |
jpayne@68 | 19 # Output the file's contents by reading the next line. But don't lose the |
jpayne@68 | 20 # current line while doing this. |
jpayne@68 | 21 g |
jpayne@68 | 22 N |
jpayne@68 | 23 bb |
jpayne@68 | 24 :a |
jpayne@68 | 25 # The hold space was nonempty. Following occurrences. Do nothing. |
jpayne@68 | 26 x |
jpayne@68 | 27 :b |
jpayne@68 | 28 } |