Blame po/insert-header.sin

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