* util/grub-mkrescue.in: Fix locale directory.
This commit is contained in:
parent
385f9abbe3
commit
a20f6ad048
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-mkrescue.in: Fix locale directory.
|
||||
|
||||
2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (map): Make static.
|
||||
|
|
|
@ -52,6 +52,8 @@ xorriso=xorriso
|
|||
export TEXTDOMAIN=@PACKAGE@
|
||||
export TEXTDOMAINDIR="@localedir@"
|
||||
|
||||
localedir="@datadir@/locale"
|
||||
|
||||
. "${pkgdatadir}/grub-mkconfig_lib"
|
||||
|
||||
# Usage: usage
|
||||
|
@ -182,9 +184,9 @@ process_input_dir ()
|
|||
done
|
||||
|
||||
mkdir -p "${iso9660_dir}/boot/grub/locale"
|
||||
for file in "${input_dir}"/po/*.mo; do
|
||||
if test -f "$file"; then
|
||||
cp -f "$file" ${iso9660_dir}/boot/grub/locale/
|
||||
for dir in "${localedir}"/*; do
|
||||
if test -f "$dir/LC_MESSAGES/grub.mo"; then
|
||||
cp -f "$dir/LC_MESSAGES/grub.mo" "${iso9660_dir}/boot/grub/locale/${dir##*/}.mo"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue