[Lunar-commits] <moonbase> scala-bin: tidy, & fix error-handling in loops

Paul Bredbury brebs at lunar-linux.org
Sat Feb 26 07:45:30 CET 2011


commit 76279dc09a9cb113a32b71c87463797109b685cf
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Sat Feb 26 13:45:30 2011 +0700

    scala-bin: tidy, & fix error-handling in loops
---
 zbeta/scala-bin/BUILD |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/zbeta/scala-bin/BUILD b/zbeta/scala-bin/BUILD
index bb30eab..3357661 100644
--- a/zbeta/scala-bin/BUILD
+++ b/zbeta/scala-bin/BUILD
@@ -1,6 +1,6 @@
 (
 
-  # rm *.bat files
+  # remove *.bat files
   rm $SOURCE_DIRECTORY/bin/*.bat &&
 
   prepare_install &&
@@ -12,23 +12,23 @@
   # symlink default and latest (like java)
   ln -sf /usr/scala/$MOD-${VERSION}.final /usr/scala/latest &&
   if [ ! -h /usr/scala/default ]; then
-     ln -sf /usr/scala/latest /usr/scala/default
-  fi  &&
+    ln -sf /usr/scala/latest /usr/scala/default
+  fi &&
 
   # symlink bin folder
   for file in /usr/scala/latest/bin/*; do
-      ln -sf $file /usr/bin/
+    ln -sf $file /usr/bin/ || exit 1
   done &&
 
   # symlink man folder
   for file in /usr/scala/latest/man/man1/*; do
-      ln -sf $file /usr/man/man1/
+    ln -sf $file /usr/man/man1/ || exit 1
   done &&
 
   if [ $EXTEND_JAVA == "y" ]; then
-      for file in /usr/scala/latest/lib/*; do
-          ln -sf $file /usr/java/latest/jre/lib/ext/
-      done
+    for file in /usr/scala/latest/lib/*; do
+      ln -sf $file /usr/java/latest/jre/lib/ext/ || exit 1
+    done
   fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list