Blame po/insert-header.sin

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