diff options
Diffstat (limited to 'graphics/gimp26/files/msgfmtstrip')
-rw-r--r-- | graphics/gimp26/files/msgfmtstrip | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/gimp26/files/msgfmtstrip b/graphics/gimp26/files/msgfmtstrip new file mode 100644 index 00000000000..f194ce51ffc --- /dev/null +++ b/graphics/gimp26/files/msgfmtstrip @@ -0,0 +1,18 @@ +# $Id: msgfmtstrip,v 1.1.1.1 2008/11/26 12:19:58 drochner Exp $ +# Simple awk script to strip out .po entries with "msgctxt" or "#~|", so the +# resultant file can be handled by the msgfmt 0.14.4 in NetBSD 4.0 +{ +if (/^$/) { entry_end(); } +else if ($1 == "msgctxt" || $2 == "msgctxt") { skip = 1; } +else if ($1 == "#~|") { skip = 1; } +else { entry = entry $0 "\n" } +} + +END { entry_end(); } + +function entry_end() { + if (!skip) + print entry; + entry = ""; + skip = 0; +} |