Ajout variable manquante HV_FONTS_DIR
[hvlinux.git] / stage3 / cis-procmail
index 0ec58b8..7e72d39 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+set -o errexit
+
 # First argument of this script is the package name
 
 # Reading system configuration informations, functions and package versions.
@@ -7,16 +9,16 @@ source ../functions
 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
@@ -78,9 +80,8 @@ spam
 ${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 $?