[Xapian-tickets] [Xapian] #569: omindex --help text for -F misleading
Xapian
nobody at xapian.org
Sat Aug 15 20:17:00 BST 2015
#569: omindex --help text for -F misleading
--------------------+-----------------------------
Reporter: catkin | Owner: olly
Type: defect | Status: assigned
Priority: normal | Milestone: 1.3.4
Component: Omega | Version: 1.2.5
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
--------------------+-----------------------------
Comment (by olly):
Text from end of attachment:
{{{
Notes on sources of information for the table:
1. General information for the table came from the "omindex operation"
section of http://xapian.org/docs/omega/overview.html.
2. File name extension to "MIME type" mappings came from the omindex
source code. The latest version can be found at
https://gitorious.org/xapian/xapian/blobs/master/xapian-
applications/omega/omindex.cc in the mime_map definition which started on
line 1026 at the time of writing.
The command used to prepare data copied from that page was:
grep -E -v '^([0-9])*[[:space:]]*$|^[[:space:]]*//' | sed -e
's/[[:space:]]*mime_map\["//' -e 's/"] = "/\t/' -e 's/"; \/\/ /\t/' -e
's/";$//'
The tabs in the output allowed it to conveniently be converted into a
table in OpenOffice Writer and then copied and pasted into the table
above.
}}}
I'm thinking it might be better to put the list of mappings into a new
file and then generate both the C++ source and docs from that.
--
Ticket URL: <http://trac.xapian.org/ticket/569#comment:10>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list