[Groonga-commit] groonga/groonga at a09a2f3 [master] Support installing expression rewriters

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 8 18:25:05 JST 2015


Kouhei Sutou	2015-10-08 18:25:05 +0900 (Thu, 08 Oct 2015)

  New Revision: a09a2f3bec1aca55862154cb90bd88a58324561c
  https://github.com/groonga/groonga/commit/a09a2f3bec1aca55862154cb90bd88a58324561c

  Message:
    Support installing expression rewriters

  Added files:
    plugins/expression_rewriters/CMakeLists.txt
    plugins/expression_rewriters/Makefile.am
    plugins/expression_rewriters/sources.am
  Modified files:
    configure.ac
    plugins/Makefile.am

  Modified: configure.ac (+4 -0)
===================================================================
--- configure.ac    2015-10-08 18:20:36 +0900 (de93eed)
+++ configure.ac    2015-10-08 18:25:05 +0900 (be749be)
@@ -253,6 +253,7 @@ AC_CONFIG_FILES([
   plugins/token_filters/Makefile
   plugins/sharding/Makefile
   plugins/functions/Makefile
+  plugins/expression_rewriters/Makefile
   examples/Makefile
   examples/dictionary/Makefile
   examples/dictionary/edict/Makefile
@@ -1385,6 +1386,9 @@ AC_SUBST(sharding_pluginsdir)
 function_pluginsdir="\${pluginsdir}/functions"
 AC_SUBST(function_pluginsdir)
 
+expression_rewriter_pluginsdir="\${pluginsdir}/expression_rewriters"
+AC_SUBST(expression_rewriter_pluginsdir)
+
 AC_MSG_CHECKING(for the suffix of plugin shared libraries)
 shrext_cmds=$(./libtool --config | grep '^shrext_cmds=')
 eval $shrext_cmds

  Modified: plugins/Makefile.am (+2 -1)
===================================================================
--- plugins/Makefile.am    2015-10-08 18:20:36 +0900 (dc39678)
+++ plugins/Makefile.am    2015-10-08 18:25:05 +0900 (72a7b72)
@@ -6,7 +6,8 @@ SUBDIRS =					\
 	ruby					\
 	token_filters				\
 	sharding				\
-	functions
+	functions				\
+	expression_rewriters
 
 EXTRA_DIST =					\
 	CMakeLists.txt

  Added: plugins/expression_rewriters/CMakeLists.txt (+26 -0) 100644
===================================================================
--- /dev/null
+++ plugins/expression_rewriters/CMakeLists.txt    2015-10-08 18:25:05 +0900 (385b5c7)
@@ -0,0 +1,26 @@
+# Copyright(C) 2015 Brazil
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1 as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+if(NOT GRN_EMBED)
+  if(GRN_WITH_MRUBY)
+    set(GRN_RELATIVE_EXPRESSION_REWRITER_PLUGINS_DIR
+      "${GRN_RELATIVE_PLUGINS_DIR}/expression_rewriters")
+
+    read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/sources.am
+      EXPRESSION_REWRITERS)
+    install(FILES ${EXPRESSION_REWRITERS}
+      DESTINATION "${GRN_RELATIVE_SEXPRESSION_REWRITER_PLUGINS_DIR}")
+  endif()
+endif()

  Added: plugins/expression_rewriters/Makefile.am (+9 -0) 100644
===================================================================
--- /dev/null
+++ plugins/expression_rewriters/Makefile.am    2015-10-08 18:25:05 +0900 (60a032a)
@@ -0,0 +1,9 @@
+EXTRA_DIST =					\
+	CMakeLists.txt
+
+if WITH_MRUBY
+dist_expression_rewriter_plugins_DATA =		\
+	$(expression_rewriters)
+endif
+
+include sources.am

  Added: plugins/expression_rewriters/sources.am (+2 -0) 100644
===================================================================
--- /dev/null
+++ plugins/expression_rewriters/sources.am    2015-10-08 18:25:05 +0900 (7670bed)
@@ -0,0 +1,2 @@
+expression_rewriters =				\
+	optimizer.rb
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index