#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && GRUB_STAGE_FILES="/usr/lib/grub/i386-pc" cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/usr && make -j ${MAKEJOBS} && make install && mkdir -p /boot/grub && cp -a ${GRUB_STAGE_FILES}/stage{1,2} /boot/grub && cp -a ${GRUB_STAGE_FILES}/{e2fs,reiserfs}_stage1_5 /boot/grub # Return last error exit $?