-Removed all ipkg_* functions and replaced them with a single ipkg function accepting...
[hvlinux.git] / stage3 / cis-java
index e053da0..a81c6df 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,15 +9,14 @@ source ../functions
 source ../packages-list
 
 # Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
 
-install -v -d /usr/java &&
-cp -a ${LFS_TMP}/${1}/* /usr/java &&
+install -v -d /usr/java
+cp -a ${LFS_TMP}/${1}/* /usr/java
 
-ln -svf ../java/bin/java /usr/bin/java &&
+ln -svf ../java/bin/java /usr/bin/java
 
-var_add_path JAVA_HOME /etc/profile "/usr/java" &&
+var_add_path JAVA_HOME /etc/profile "/usr/java"
 var_export   JAVA_HOME /etc/profile
 
-# Return last error
 exit $?