#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name
# Reading system configuration informations, functions and package versions.
source ../packages-list
# Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
-cd ${LFS_TMP}/${1} &&
+cd ${LFS_TMP}/${1}
make \
BASENAME=/usr \
LOCKINGTEST=/tmp \
- install &&
-make install-suid &&
+ install
+make install-suid
-cat > /etc/procmailrc << "EOF" &&
+cat > /etc/procmailrc << "EOF"
# /etc/procmailrc
#
SHELL=/bin/sh
${DEFAULT}
EOF
-DOMAIN1=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\1!") &&
-DOMAIN2=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\2!") &&
+DOMAIN1=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\1!")
+DOMAIN2=$(echo ${DOMAIN} | sed "s!\(.*\)\.\(.*\)!\2!")
sed -i -e "s!_DOMAIN_!${DOMAIN1}\\\.${DOMAIN2}!g" /etc/procmailrc
-# Return last error
exit $?