null+****@clear*****
null+****@clear*****
2011年 5月 18日 (水) 14:53:16 JST
Kouhei Sutou 2011-05-18 05:53:16 +0000 (Wed, 18 May 2011)
New Revision: a1e1c24274f4051cdfb69ec2f28d6ad8d0fee159
Log:
[doc] support locale add command.
Modified files:
doc/locale/Makefile.am
Modified: doc/locale/Makefile.am (+13 -13)
===================================================================
--- doc/locale/Makefile.am 2011-05-18 05:46:28 +0000 (1cb747d)
+++ doc/locale/Makefile.am 2011-05-18 05:53:16 +0000 (27c69f9)
@@ -1,4 +1,4 @@
-SUBDIRS = \
+SUBDIRS = \
ja
add:
@@ -6,20 +6,20 @@ add:
(echo "run with LOCALE=\$${NEW_LOCALE}."; \
echo "e.g.: make add LOCALE=ja"; \
false)
- mkdir -p $(srcdir)/$(LOCALE)/LC_MESSAGE
- sed -e 's,%LOCALE%,$(LOCALE),g' \
- $(srcdir)/$(LOCALE)/template.locale.Makefile.am \
+ mkdir -p $(srcdir)/$(LOCALE)/LC_MESSAGES
+ sed -e 's,%LOCALE%,$(LOCALE),g' \
+ $(srcdir)/template.locale.Makefile.am \
> $(srcdir)/$(LOCALE)/Makefile.am
- sed -e 's,%LOCALE%,$(LOCALE),g' \
- $(srcdir)/$(LOCALE)/template.locale.LC_MESSAGES.Makefile.am \
+ sed -e 's,%LOCALE%,$(LOCALE),g' \
+ $(srcdir)/template.locale.LC_MESSAGES.Makefile.am \
> $(srcdir)/$(LOCALE)/LC_MESSAGES/Makefile.am
sed -i'' \
- -e 's,SUBDIRS =,SUBDIRS =\n\t$(LOCALE),' \
+ -e 's,^SUBDIRS =,SUBDIRS = \\\n\t$(LOCALE),' \
$(srcdir)/Makefile.am
- sed -i'' \
- -e "/doc\/locale\/ja\/Makefile/ \
- a doc\/locale\/$(LOCALE)\/Makefile" \
- -e "/doc\/locale\/ja\/LC_MESSAGES\/Makefile/ \
- a doc\/locale\/$(LOCALE)\/LC_MESSAGES\Makefile" \
- $(srcdir)/configure.ac
+ sed -i'' \
+ -e "\,doc/locale/ja/LC_MESSAGES/Makefile, \
+ a \ \ doc\/locale\/$(LOCALE)\/Makefile" \
+ -e "\,doc/locale/ja/LC_MESSAGES/Makefile, \
+ a \ \ doc\/locale\/$(LOCALE)\/LC_MESSAGES\/Makefile" \
+ $(top_srcdir)/configure.ac