Blame po/insert-header.sin

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