summaryrefslogtreecommitdiff
path: root/security/seahorse
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2008-11-03 06:52:04 +0000
committerwiz <wiz@pkgsrc.org>2008-11-03 06:52:04 +0000
commit7e9836de000e795e4b061f0db89aa6694540fe62 (patch)
tree0e8b5e21a6a8ea192f974f1cd1c075189b7f1634 /security/seahorse
parent0515e3be9e1e400207b50d977f11f11249b1b09a (diff)
downloadpkgsrc-7e9836de000e795e4b061f0db89aa6694540fe62.tar.gz
Add script for munging locale files.
Diffstat (limited to 'security/seahorse')
-rw-r--r--security/seahorse/files/msgfmtstrip18
1 files changed, 18 insertions, 0 deletions
diff --git a/security/seahorse/files/msgfmtstrip b/security/seahorse/files/msgfmtstrip
new file mode 100644
index 00000000000..6a79f7cff94
--- /dev/null
+++ b/security/seahorse/files/msgfmtstrip
@@ -0,0 +1,18 @@
+# $Id: msgfmtstrip,v 1.1 2008/11/03 06:52:04 wiz 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;
+}