null+****@clear*****
null+****@clear*****
2010年 9月 13日 (月) 15:07:10 JST
Kouhei Sutou 2010-09-13 06:07:10 +0000 (Mon, 13 Sep 2010)
New Revision: d480e6d5ee04b03d8ed0059c6fa88ad57c47fdbc
Log:
install dictionary example.
Added files:
examples/dictionary/Makefile.am
examples/dictionary/edict/Makefile.am
examples/dictionary/eijiro/Makefile.am
examples/dictionary/gene95/Makefile.am
examples/dictionary/jmdict/Makefile.am
Modified files:
configure.ac
examples/Makefile.am
Modified: configure.ac (+11 -0)
===================================================================
--- configure.ac 2010-09-13 05:20:23 +0000 (993343b)
+++ configure.ac 2010-09-13 06:07:10 +0000 (aff481e)
@@ -93,6 +93,11 @@ AC_CONFIG_FILES([Makefile
modules/tokenizers/Makefile
modules/suggest/Makefile
examples/Makefile
+ examples/dictionary/Makefile
+ examples/dictionary/edict/Makefile
+ examples/dictionary/eijiro/Makefile
+ examples/dictionary/gene95/Makefile
+ examples/dictionary/jmdict/Makefile
apt/Makefile
rpm/Makefile
rpm/centos/Makefile
@@ -655,6 +660,12 @@ if test -z "$suffix"; then
fi
AC_DEFINE_UNQUOTED(GRN_MODULE_SUFFIX, ["$suffix"], "module suffix")
+# for examples
+examplesdir="\$(pkgdatadir)/examples"
+AC_SUBST(examplesdir)
+
+examples_dictionarydir="\$(examplesdir)/dictionary"
+AC_SUBST(examples_dictionarydir)
# flags for compile groonga
CFLAGS="$CFLAGS $OPT_CFLAGS "
Modified: examples/Makefile.am (+2 -0)
===================================================================
--- examples/Makefile.am 2010-09-13 05:20:23 +0000 (76d30cd)
+++ examples/Makefile.am 2010-09-13 06:07:10 +0000 (b34a336)
@@ -1,3 +1,5 @@
+SUBDIRS = dictionary
+
noinst_PROGRAMS = kv
DEFAULT_INCLUDES = -I$(top_srcdir) $(GROONGA_INCLUDEDIR)
Added: examples/dictionary/Makefile.am (+17 -0) 100644
===================================================================
--- /dev/null
+++ examples/dictionary/Makefile.am 2010-09-13 06:07:10 +0000 (e40c90e)
@@ -0,0 +1,17 @@
+SUBDIRS = \
+ edict \
+ eijiro \
+ gene95 \
+ jmdict
+
+nobase_dist_examples_dictionary_DATA = \
+ readme.txt \
+ init_db.sh \
+ $(html_files)
+
+# find html -type f | sort | sed -e 's,^./,\t,g'
+html_files = \
+ html/css/dictionary.css \
+ html/index.html \
+ html/js/dictionary.js \
+ html/js/jquery-1.4.2.min.js
Added: examples/dictionary/edict/Makefile.am (+4 -0) 100644
===================================================================
--- /dev/null
+++ examples/dictionary/edict/Makefile.am 2010-09-13 06:07:10 +0000 (1069dfb)
@@ -0,0 +1,4 @@
+edictdir = $(examples_dictionarydir)/edict
+dist_edict_DATA = \
+ edict2grn.rb \
+ edict_import.sh
Added: examples/dictionary/eijiro/Makefile.am (+4 -0) 100644
===================================================================
--- /dev/null
+++ examples/dictionary/eijiro/Makefile.am 2010-09-13 06:07:10 +0000 (7eea9e9)
@@ -0,0 +1,4 @@
+eijirodir = $(examples_dictionarydir)/eijiro
+dist_eijiro_DATA = \
+ eijiro2grn.rb \
+ eijiro_import.sh
Added: examples/dictionary/gene95/Makefile.am (+4 -0) 100644
===================================================================
--- /dev/null
+++ examples/dictionary/gene95/Makefile.am 2010-09-13 06:07:10 +0000 (256cb37)
@@ -0,0 +1,4 @@
+gene95dir = $(examples_dictionarydir)/gene95
+dist_gene95_DATA = \
+ gene2grn.rb \
+ gene_import.sh
Added: examples/dictionary/jmdict/Makefile.am (+3 -0) 100644
===================================================================
--- /dev/null
+++ examples/dictionary/jmdict/Makefile.am 2010-09-13 06:07:10 +0000 (2625946)
@@ -0,0 +1,3 @@
+jmdictdir = $(examples_dictionarydir)/jmdict
+dist_jmdict_DATA = \
+ jmdict.rb