Ajout variable manquante HV_FONTS_DIR
[hvlinux.git] / stage3 / cis-libusb
index 4c01940..dd62041 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,24 +9,23 @@ source ../functions
 source ../packages-list
 
 # Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
 
-cd ${LFS_TMP}/${1} &&
+cd ${LFS_TMP}/${1}
 ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
-    --disable-build-docs &&
-make &&
-make install &&
+    --disable-build-docs
+make
+make install
 
-hv_groupadd -g 14 usb &&
+hv_groupadd -g 14 usb
 
 # Checking if string exists
 if ! grep "/proc/bus/usb" /etc/fstab 1> /dev/null 2>&1; then
-    echo "usbfs            /proc/bus/usb      usbfs    ddevgid=14,devmode=0660  0 0" >> /etc/fstab || exit 1
-fi &&
+    echo "usbfs            /proc/bus/usb      usbfs    ddevgid=14,devmode=0660  0 0" >> /etc/fstab
+fi
 
 ldconfig
 
-# Return last error
 exit $?