Blame po/remove-potcdate.sin
|
Packit Service |
50ad14 |
# Sed script that remove the POT-Creation-Date line in the header entry
|
|
Packit Service |
50ad14 |
# from a POT file.
|
|
Packit Service |
50ad14 |
#
|
|
Packit Service |
50ad14 |
# The distinction between the first and the following occurrences of the
|
|
Packit Service |
50ad14 |
# pattern is achieved by looking at the hold space.
|
|
Packit Service |
50ad14 |
/^"POT-Creation-Date: .*"$/{
|
|
Packit Service |
50ad14 |
x
|
|
Packit Service |
50ad14 |
# Test if the hold space is empty.
|
|
Packit Service |
50ad14 |
s/P/P/
|
|
Packit Service |
50ad14 |
ta
|
|
Packit Service |
50ad14 |
# Yes it was empty. First occurrence. Remove the line.
|
|
Packit Service |
50ad14 |
g
|
|
Packit Service |
50ad14 |
d
|
|
Packit Service |
50ad14 |
bb
|
|
Packit Service |
50ad14 |
:a
|
|
Packit Service |
50ad14 |
# The hold space was nonempty. Following occurrences. Do nothing.
|
|
Packit Service |
50ad14 |
x
|
|
Packit Service |
50ad14 |
:b
|
|
Packit Service |
50ad14 |
}
|