diff options
author | Elliott Hughes <enh@google.com> | 2015-02-17 21:09:48 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-17 21:09:48 +0000 |
commit | 36ae2388eb2c03a63b5728a95581b57d1d7bf2e3 (patch) | |
tree | 961dfef28571e02a7d969fbba9bb51991086476b /src/po/insert-header.sin | |
parent | a18b309395beb83ab26a8499d35c771016a3cadd (diff) | |
parent | b48bfdc826ebdd316d5d8a4ff8f213391f1c710b (diff) | |
download | android_external_elfutils-36ae2388eb2c03a63b5728a95581b57d1d7bf2e3.tar.gz android_external_elfutils-36ae2388eb2c03a63b5728a95581b57d1d7bf2e3.tar.bz2 android_external_elfutils-36ae2388eb2c03a63b5728a95581b57d1d7bf2e3.zip |
am b48bfdc8: Merge "Export elfutils headers and lose the version number from the path."
* commit 'b48bfdc826ebdd316d5d8a4ff8f213391f1c710b':
Export elfutils headers and lose the version number from the path.
Diffstat (limited to 'src/po/insert-header.sin')
-rw-r--r-- | src/po/insert-header.sin | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/po/insert-header.sin b/src/po/insert-header.sin new file mode 100644 index 00000000..b26de01f --- /dev/null +++ b/src/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 +} |