kconfig: update-po-config info
This patch adds tracking messages. Signed-off-by: Egry Gabor <gaboregry1@t-online.hu> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org>
This commit is contained in:
parent
243f40cecb
commit
1020026f99
1 changed files with 11 additions and 7 deletions
|
@ -24,22 +24,25 @@ oldconfig: $(obj)/conf
|
||||||
silentoldconfig: $(obj)/conf
|
silentoldconfig: $(obj)/conf
|
||||||
$< -s $(Kconfig)
|
$< -s $(Kconfig)
|
||||||
|
|
||||||
# Create new linux.po file
|
# Create new linux.pot file
|
||||||
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
||||||
# The symlink is used to repair a deficiency in arch/um
|
# The symlink is used to repair a deficiency in arch/um
|
||||||
update-po-config: $(obj)/kxgettext
|
update-po-config: $(obj)/kxgettext
|
||||||
xgettext --default-domain=linux \
|
$(Q)echo " GEN config"
|
||||||
|
$(Q)xgettext --default-domain=linux \
|
||||||
--add-comments --keyword=_ --keyword=N_ \
|
--add-comments --keyword=_ --keyword=N_ \
|
||||||
--from-code=UTF-8 \
|
--from-code=UTF-8 \
|
||||||
--files-from=scripts/kconfig/POTFILES.in \
|
--files-from=scripts/kconfig/POTFILES.in \
|
||||||
--output $(obj)/config.pot
|
--output $(obj)/config.pot
|
||||||
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
|
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
|
||||||
$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
|
$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
|
||||||
(for i in `ls arch/`; \
|
$(Q)(for i in `ls arch/`; \
|
||||||
do \
|
do \
|
||||||
$(obj)/kxgettext arch/$$i/Kconfig; \
|
echo " GEN $$i"; \
|
||||||
done ) >> $(obj)/config.pot
|
$(obj)/kxgettext arch/$$i/Kconfig \
|
||||||
msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
>> $(obj)/config.pot; \
|
||||||
|
done )
|
||||||
|
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
|
||||||
--output $(obj)/linux.pot
|
--output $(obj)/linux.pot
|
||||||
$(Q)rm -f arch/um/Kconfig.arch
|
$(Q)rm -f arch/um/Kconfig.arch
|
||||||
$(Q)rm -f $(obj)/config.pot
|
$(Q)rm -f $(obj)/config.pot
|
||||||
|
@ -138,6 +141,7 @@ endif
|
||||||
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
|
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
|
||||||
.tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c
|
.tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c
|
||||||
clean-files += mconf qconf gconf
|
clean-files += mconf qconf gconf
|
||||||
|
clean-files += config.pot linux.pot
|
||||||
|
|
||||||
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
|
||||||
PHONY += $(obj)/dochecklxdialog
|
PHONY += $(obj)/dochecklxdialog
|
||||||
|
|
Loading…
Add table
Reference in a new issue