Add a --locale-directory option to grub-install and related tools.
authorColin Watson <cjwatson@ubuntu.com>
Mon, 25 Nov 2013 18:04:50 +0000 (18:04 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 25 Nov 2013 18:04:50 +0000 (18:04 +0000)
commit07e3b04742a98a040290520863cac95b2e49f6e5
treef503fe217cd2b5d54574e4479d32bee06147713b
parent61e1b9a49d48035bde52784abb54c3212b647fc8
Add a --locale-directory option to grub-install and related tools.

* include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
--locale-directory option.
(enum grub_install_options): Add
GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
* util/grub-install-common.c (grub_install_help_filter): Handle
GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
(grub_install_parse): Likewise.
(get_localedir): New function to check for a user-provided option
before trying grub_util_get_localedir.
(copy_locales): Use get_localedir rather than
grub_util_get_localedir.  Handle differing locale directory layouts.
(grub_install_copy_files): Likewise.
ChangeLog
include/grub/util/install.h
util/grub-install-common.c