Commit 0117d5b1 authored by Manuel's avatar Manuel

Fix an ugly quotation issue with some langs

parent 3ef3e7f5
......@@ -11,7 +11,7 @@ if [ "${CARCH}" == 'x86_64' ]; then
fi
pkgver=2.00
pkgrel=4
pkgrel=5
arch=('x86_64')
url="http://www.gnu.org/software/grub/"
license=('GPL3')
......@@ -22,10 +22,12 @@ makedepends=('xz' 'bdf-unifont' 'ttf-dejavu' 'python' 'autogen'
source=("ftp://ftp.gnu.org/gnu/grub/grub-${pkgver}.tar.xz"
'chakra_grub2_fixes.patch'
'quote-strings-in-grub.cfg.patch'
'grub.default'
'update-grub')
md5sums=('a1043102fbc7bcedbf53e7ee3d17ab91'
'bc191bc9e298380c1d5995c0faafa75a'
'3ad276456daa36cf2a1de678827043f3'
'31e4c7414cef3db3fb26c40ac8da97f2'
'9910bdfd42fa7d3e21e6961bfcc977f9')
......@@ -68,6 +70,7 @@ _build_prepare() {
msg2 "Applying patches..."
cd "${srcdir}/grub-${pkgver}"
patch -Np1 -i "${srcdir}/chakra_grub2_fixes.patch" || return 1
patch -Np0 -i "${srcdir}/quote-strings-in-grub.cfg.patch" || return 1
msg2 "Done patching."
msg2 "Cloning the grub-extras repositories..."
......
=== modified file 'util/grub.d/10_kfreebsd.in'
--- util/grub.d/10_kfreebsd.in 2012-09-18 11:04:06 +0000
+++ util/grub.d/10_kfreebsd.in 2012-11-19 19:55:17 +0000
@@ -98,7 +98,7 @@
fi
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
- message="$(gettext_printf "Loading kernel of FreeBSD %s ..." ${version})"
+ message="$(gettext_printf "Loading kernel of FreeBSD %s ..." ${version} | grub_quote)"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
kfreebsd ${rel_dirname}/${basename} ${args}
=== modified file 'util/grub.d/20_linux_xen.in'
--- util/grub.d/20_linux_xen.in 2012-09-18 11:04:06 +0000
+++ util/grub.d/20_linux_xen.in 2012-11-19 19:55:17 +0000
@@ -117,8 +117,8 @@
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
fi
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
- xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
- lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
+ xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version} | grub_quote)"
+ lmessage="$(gettext_printf "Loading Linux %s ..." ${version} | grub_quote)"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$xmessage" | grub_quote)'
multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
@@ -127,7 +127,7 @@
EOF
if test -n "${initrd}" ; then
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
- message="$(gettext_printf "Loading initial ramdisk ...")"
+ message="$(gettext_printf "Loading initial ramdisk ..." | grub_quote)"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
module ${rel_dirname}/${initrd}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment