Blame po/insert-header.sin

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