Blame po/remove-potcdate.sin
|
Packit |
032894 |
# Sed script that remove the POT-Creation-Date line in the header entry
|
|
Packit |
032894 |
# from a POT file.
|
|
Packit |
032894 |
#
|
|
Packit |
032894 |
# The distinction between the first and the following occurrences of the
|
|
Packit |
032894 |
# pattern is achieved by looking at the hold space.
|
|
Packit |
032894 |
/^"POT-Creation-Date: .*"$/{
|
|
Packit |
032894 |
x
|
|
Packit |
032894 |
# Test if the hold space is empty.
|
|
Packit |
032894 |
s/P/P/
|
|
Packit |
032894 |
ta
|
|
Packit |
032894 |
# Yes it was empty. First occurrence. Remove the line.
|
|
Packit |
032894 |
g
|
|
Packit |
032894 |
d
|
|
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 |
}
|