#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name.
# Reading system configuration informations, functions and package versions.
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 $?