[Groonga-commit] groonga/groonga [master] install groonga-query-log-analyzer.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 6月 27日 (月) 17:49:51 JST


Kouhei Sutou	2011-06-27 08:49:51 +0000 (Mon, 27 Jun 2011)

  New Revision: 359d35ad0dd9e2954543a1b80ccc31492fb66c8b

  Log:
    install groonga-query-log-analyzer.

  Modified files:
    tools/Makefile.am

  Modified: tools/Makefile.am (+19 -2)
===================================================================
--- tools/Makefile.am    2011-06-27 08:44:19 +0000 (8d38858)
+++ tools/Makefile.am    2011-06-27 08:49:51 +0000 (bc47cb7)
@@ -1,6 +1,23 @@
-bin_SCRIPTS =					\
+install_ruby_scripts =				\
 	groonga-query-log-analyzer
 
-EXTRA_DIST =					\
+noinstall_ruby_scripts = 			\
 	groonga-memory-leak-checker.rb		\
 	prepare-sphinx-html.rb
+
+EXTRA_DIST =					\
+	$(install_ruby_scripts)			\
+	$(noinstall_ruby_scripts)
+
+if WITH_RUBY
+bin_SCRIPTS = $(install_ruby_scripts)
+endif
+
+if WITH_RUBY
+install-exec-hook:
+	for script in $(install_ruby_scripts); do	\
+	  sed -i''					\
+	    -e '1s,#!.*,#!$(RUBY),'			\
+	    $(DESTDIR)$(bindir)/$${script};		\
+	done
+endif




Groonga-commit メーリングリストの案内
Back to archive index