* util/grub-mkrescue.in: Fix locale directory.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-04-23 17:17:50 +02:00
parent 385f9abbe3
commit a20f6ad048
2 changed files with 9 additions and 3 deletions

View file

@ -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> 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (map): Make static. * grub-core/kern/emu/hostdisk.c (map): Make static.

View file

@ -52,6 +52,8 @@ xorriso=xorriso
export TEXTDOMAIN=@PACKAGE@ export TEXTDOMAIN=@PACKAGE@
export TEXTDOMAINDIR="@localedir@" export TEXTDOMAINDIR="@localedir@"
localedir="@datadir@/locale"
. "${pkgdatadir}/grub-mkconfig_lib" . "${pkgdatadir}/grub-mkconfig_lib"
# Usage: usage # Usage: usage
@ -182,9 +184,9 @@ process_input_dir ()
done done
mkdir -p "${iso9660_dir}/boot/grub/locale" mkdir -p "${iso9660_dir}/boot/grub/locale"
for file in "${input_dir}"/po/*.mo; do for dir in "${localedir}"/*; do
if test -f "$file"; then if test -f "$dir/LC_MESSAGES/grub.mo"; then
cp -f "$file" ${iso9660_dir}/boot/grub/locale/ cp -f "$dir/LC_MESSAGES/grub.mo" "${iso9660_dir}/boot/grub/locale/${dir##*/}.mo"
fi fi
done done
} }