#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name.
# Remaining arguments are additional configure options.
source ../functions
source ../packages-list
-CUR_DIR=$(pwd)
-
PACKAGE=${1}
shift
CONFIGURE_OPTS=${*}
# Applying patches (if any)
-apply_patches ${PACKAGE} &&
+apply_patches ${PACKAGE}
-cd ${LFS_TMP}/${PACKAGE} &&
-make &&
-make install &&
+cd ${LFS_TMP}/${PACKAGE}
+make
+make install
# Mount script
-install -v -m755 ${CUR_DIR}/resources/mount.fusedvdfs /sbin
+install -v -m755 ${SCRDIR}/resources/mount.fusedvdfs /sbin
-# Return last error
exit $?