Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[offline-renderer] account for mecab index bing in different places

Search for the binary in some common directories
suggested by Robin Humble <robin.humble+om@anu.edu.au>

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
commit cdb1c663f4acb640d5c8abd7241442ee061968ba 1 parent 3247526
@hxw hxw authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 host-tools/offline-renderer/Makefile
View
4 host-tools/offline-renderer/Makefile
@@ -70,7 +70,9 @@ HTML_ARTICLES := $(shell ${RESOLVEPATH} ${HTML_ARTICLES_PREFIX}${RENDER_BLOCK}.h
VERSION_FILE := ${DATA_PREFIX}.ftr
-MECAB_INDEX := /usr/lib/mecab/mecab-dict-index
+# search for the mecab index file
+MECAB_INDEX := $(shell for d in /usr/lib/mecab /usr/libexec/mecab /usr/bin; do f="$${d}/mecab-dict-index"; [ -f "$${f}" ] && echo $${f} && break; done)
+
MECAB_INDEX_OPTS := --dicdir=/var/lib/mecab/dic/ipadic-utf8 --charset=utf-8 --dictionary-charset=utf-8
PYLZMA_DIR := pylzma-0.3.0
Please sign in to comment.
Something went wrong with that request. Please try again.