Blame po/insert-header.sin

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