-Completed transition to new ipkg method (ipkg.def), but still problem with eglibc...
[hvlinux.git] / stage3 / cis-flashplugin
index 433658f..27e1271 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.
@@ -9,20 +11,19 @@ source ../packages-list
 PLUGINS_DIR=/usr/lib/firefox/plugins
 
 # Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
 
 # Decompression of a package
 # First argument: package name
 # Second argument: directory where decompressing (optional)
-decompress_package ${1} &&
+decompress_package ${1}
 
 if [ ! -d ${PLUGINS_DIR} ]; then
     echo "Plugins directory not found."
     return 1
-fi &&
+fi
 
-install -v -m755 ${LFS_TMP}/${1}/flashplayer.xpt   ${PLUGINS_DIR} &&
+install -v -m755 ${LFS_TMP}/${1}/flashplayer.xpt   ${PLUGINS_DIR}
 install -v -m755 ${LFS_TMP}/${1}/libflashplayer.so ${PLUGINS_DIR}
 
-# Return last error
 exit $?