diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-05 20:11:45 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-05 20:11:45 +0200 |
commit | a1705fe4211340e380d50f48c177ca2d66bf7b8b (patch) | |
tree | af2f426d8290327e52a5992935d6c22160be2a25 /po/insert-header.sin | |
parent | da15a59717fcf824569cbd647641c572405eb678 (diff) | |
download | exchange-a1705fe4211340e380d50f48c177ca2d66bf7b8b.tar.gz exchange-a1705fe4211340e380d50f48c177ca2d66bf7b8b.tar.bz2 exchange-a1705fe4211340e380d50f48c177ca2d66bf7b8b.zip |
add gettext support
Diffstat (limited to 'po/insert-header.sin')
-rw-r--r-- | po/insert-header.sin | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/po/insert-header.sin b/po/insert-header.sin new file mode 100644 index 000000000..b26de01f6 --- /dev/null +++ b/po/insert-header.sin @@ -0,0 +1,23 @@ +# Sed script that inserts the file called HEADER before the header entry. +# +# At each occurrence of a line starting with "msgid ", we execute the following +# commands. At the first occurrence, insert the file. At the following +# occurrences, do nothing. The distinction between the first and the following +# occurrences is achieved by looking at the hold space. +/^msgid /{ +x +# Test if the hold space is empty. +s/m/m/ +ta +# Yes it was empty. First occurrence. Read the file. +r HEADER +# Output the file's contents by reading the next line. But don't lose the +# current line while doing this. +g +N +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +} |