Blame po/insert-header.sin

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