Blame po/insert-header.sin

Packit Service db4263
# Sed script that inserts the file called HEADER before the header entry.
Packit Service db4263
#
Packit Service db4263
# At each occurrence of a line starting with "msgid ", we execute the following
Packit Service db4263
# commands. At the first occurrence, insert the file. At the following
Packit Service db4263
# occurrences, do nothing. The distinction between the first and the following
Packit Service db4263
# occurrences is achieved by looking at the hold space.
Packit Service db4263
/^msgid /{
Packit Service db4263
x
Packit Service db4263
# Test if the hold space is empty.
Packit Service db4263
s/m/m/
Packit Service db4263
ta
Packit Service db4263
# Yes it was empty. First occurrence. Read the file.
Packit Service db4263
r HEADER
Packit Service db4263
# Output the file's contents by reading the next line. But don't lose the
Packit Service db4263
# current line while doing this.
Packit Service db4263
g
Packit Service db4263
N
Packit Service db4263
bb
Packit Service db4263
:a
Packit Service db4263
# The hold space was nonempty. Following occurrences. Do nothing.
Packit Service db4263
x
Packit Service db4263
:b
Packit Service db4263
}