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