[Groonga-commit] groonga/groonga [master] [doc] add add-language target for new language support.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 9日 (月) 00:13:50 JST


Kouhei Sutou	2011-05-08 15:13:50 +0000 (Sun, 08 May 2011)

  New Revision: f4b9676c93e6faccaa8d80a15a08d01ce2c49d06

  Log:
    [doc] add add-language target for new language support.

  Modified files:
    doc/Makefile.am

  Modified: doc/Makefile.am (+13 -0)
===================================================================
--- doc/Makefile.am    2011-05-08 05:36:53 +0000 (db47c89)
+++ doc/Makefile.am    2011-05-08 15:13:50 +0000 (c508291)
@@ -149,6 +149,19 @@ pdf: sphinx-ensure-updated
 update-examples:
 	GROONGA=$(GROONGA) $(srcdir)/source/update_execution_example.py
 
+add-language: gettext
+	test -n "$(LANGUAGE)" ||			\
+	  (echo "run with LANGUAGE=\$${NEW_LANGUAGE}.";	\
+	   echo "e.g.: make add-language LANGUAGE=ja";	\
+           false)
+	mkdir -p $(srcdir)/po/$(LANGUAGE)
+	for pot in $(BUILDDIR)/pot/*.pot; do			\
+	  msginit						\
+	    --input "$$pot"					\
+	    --output $(srcdir)/po/$(LANGUAGE)/`basename \$$pot`	\
+	    --locale=$(LANGUAGE);				\
+	done
+
 if ENABLE_DOCUMENT
 dist-hook:
 	@touch $(distdir)/man-build-stamp




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