https://github.com/scummvm/scummvm
Raw File
Tip revision: 2d93e786decf8c44439c4c32f8359e344254af09 authored by Eugene Sandulenko on 28 April 2014, 18:08:08 UTC
Merge pull request #430 from sunmax/branch-1-6-0
Tip revision: 2d93e78
remove-potcdate.sed
# Sed script that remove the POT-Creation-Date line in the header entry
# from a POT file.
#
# The distinction between the first and the following occurrences of the
# pattern is achieved by looking at the hold space.
/^"POT-Creation-Date: .*"$/{
x
# Test if the hold space is empty.
s/P/P/
ta
# Yes it was empty. First occurrence. Remove the line.
g
d
bb
:a
# The hold space was nonempty. Following occurrences. Do nothing.
x
:b
}
back to top