From bb61464b053b94e4f30dd329ecb7b2b89767e97c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 16 Sep 2018 12:25:29 +0100 Subject: small adjustments --- packages/sys-boot/grub/grub.exlib | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/packages/sys-boot/grub/grub.exlib b/packages/sys-boot/grub/grub.exlib index 6d7edea..702f066 100644 --- a/packages/sys-boot/grub/grub.exlib +++ b/packages/sys-boot/grub/grub.exlib @@ -77,11 +77,11 @@ grub_src_prepare() { grub_src_multibuild_prepare() { if option efi; then - cp -ax ${WORK} ${WORK}-efi + cp -ax "${WORK}" "${WORK}"-efi fi if option pc; then - cp -ax ${WORK} ${WORK}-pc + cp -ax "${WORK}" "${WORK}"-pc fi } @@ -93,7 +93,7 @@ grub_src_configure() { grub_src_multibuild_prepare if option efi; then - pushd ${WORK}-efi + pushd "${WORK}"-efi myconf=( "CPP=${CC} -E" @@ -122,7 +122,7 @@ grub_src_configure() { fi if option pc; then - pushd ${WORK}-pc + pushd "${WORK}"-pc myconf=( "CPP=${CC} -E" @@ -153,19 +153,29 @@ grub_src_configure() { grub_src_compile() { if option efi; then - pushd ${WORK}-efi - emake && emake DESTDIR="${IMAGE}" install - rm -rf ${WORK}-efi + pushd "${WORK}"-efi + emake fi if option pc; then - pushd ${WORK}-pc - emake && emake DESTDIR="${IMAGE}" install - rm -rf ${WORK}-pc + pushd "${WORK}"-pc + emake fi } grub_src_install() { + if option efi; then + pushd "${WORK}"-efi + emake DESTDIR="${IMAGE}" install + edo rm -rf "${WORK}"-efi + fi + + if option pc; then + pushd "${WORK}"-pc + emake DESTDIR="${IMAGE}" install + edo rm -rf "${WORK}"-pc + fi + dodoc "${WORK}"/docs/grub.cfg edo rm -f "${IMAGE}"/usr/$(exhost --target)/lib/charset.alias -- cgit v1.2.3