[Groonga-mysql-commit] mroonga/mroonga at 0c95c0b [master] doc: generate .edit by just `make`

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 14 17:46:58 JST 2014


Kouhei Sutou	2014-08-14 17:46:58 +0900 (Thu, 14 Aug 2014)

  New Revision: 0c95c0bdc88cb71955456cce2369586a9924c1c3
  https://github.com/mroonga/mroonga/commit/0c95c0bdc88cb71955456cce2369586a9924c1c3

  Message:
    doc: generate .edit by just `make`

  Modified files:
    build/makefiles/gettext.am

  Modified: build/makefiles/gettext.am (+11 -13)
===================================================================
--- build/makefiles/gettext.am    2014-08-14 13:12:10 +0900 (3d11282)
+++ build/makefiles/gettext.am    2014-08-14 17:46:58 +0900 (772ef90)
@@ -21,7 +21,16 @@ SUFFIXES += .pot .po .mo .edit
 all:
 
 .pot.edit:
-	msgmerge --quiet --sort-by-file --output-file=$@ $*.po $<
+	if test -f $@.po; then						\
+	  msgmerge --quiet --sort-by-file --output-file=$@ $*.po $<;	\
+	else								\
+	  msginit							\
+	    --input=$<							\
+	    --output-file=$@						\
+	    --locale=$(LOCALE)						\
+	    --no-translator;						\
+	fi
+
 .edit.po:
 	msgcat --no-location --output $@ $*.edit
 .po.mo:
@@ -52,17 +61,6 @@ init: gettext
 	  :;										\
 	done
 
-edit:
-	for pot in *.pot; do								\
-	  edit_po=`basename $${pot} | sed -e 's,pot$$,edit,g'`;				\
-	  po=`basename $${pot} | sed -e 's,pot$$,po,g'`;				\
-	  test ! -f $${edit_po} && test -f $${po} &&					\
-	    msgmerge --quiet --sort-by-file --output-file=$${edit_po} $${po} $${pot};	\
-	  test ! -f $${edit_po} && test ! -f $${po} &&					\
-	    msginit --input=$${pot} --output-file=$${edit_po} --locale=$(LOCALE);	\
-	  :;										\
-	done
-
 reinit:
 	$(MAKE) FORCE_INIT=yes init
 
@@ -71,5 +69,5 @@ pot-build-stamp: $(absolute_source_files)
 	@touch $@
 
 edit-po-build-stamp: $(absolute_source_files)
-	$(MAKE) edit
+	$(MAKE) $(edit_po_files)
 	@touch $@
-------------- next part --------------
HTML����������������������������...
Descargar 



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