[pisa-src] r1061 - in trunk/tools: . subversion

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 08 Oct 2009 17:21:45 +0200

Author: biurrun
Date: Thu Oct  8 17:21:45 2009
New Revision: 1061

Log:
cosmetics: Indent script properly.

Modified:
   trunk/tools/mount-lufg
   trunk/tools/subversion/pisa_runautobuild

Modified: trunk/tools/mount-lufg
==============================================================================
--- trunk/tools/mount-lufg      Thu Oct  8 17:11:42 2009        (r1060)
+++ trunk/tools/mount-lufg      Thu Oct  8 17:21:45 2009        (r1061)
@@ -11,7 +11,7 @@
     echo "GOOD: smbmount found"
 else
     echo "ERROR: smbmount NOT found! Install smbmount: apt-get install smbfs"
-       exit
+    exit
 fi
 
 
@@ -21,9 +21,8 @@
 
 # Read user name if not set already
 if [ "$USER" = "" ]; then
-
-  echo "Enter LuFG user name (You can statically set the user name in this 
script):"
-  read USER
+    echo "Enter LuFG user name (You can statically set the user name in this 
script):"
+    read USER
 fi
 
 # Read password
@@ -40,27 +39,21 @@
 SHARES=( //pride/$USER //pride/projects/pisa //pride/power/pisa )
 DIRS=( home project build )
 
-for (( i = 0 ; i < ${#SHARES[@]} ; i++ ))
-do
-
-SHARE=${SHARES[$i]}
-DIR=${DIRS[$i]}
- 
-if [ ! -d "$HOME/$DIR" ]; 
-then
-  echo "Directory $HOME/$DIR does not exist. Creating directory.";
-  mkdir $HOME/$DIR
-fi
-
-#unmount previous mounts
-echo Unmounting $HOME/$DIR
-smbumount $HOME/$DIR
-
-echo "Mounting $SHARE"
- smbmount $SHARE $HOME/$DIR -o user=$USER%$PASS
-
-
+for (( i = 0 ; i < ${#SHARES[@]} ; i++ )); do
+    SHARE=${SHARES[$i]}
+    DIR=${DIRS[$i]}
+
+    if [ ! -d "$HOME/$DIR" ]; then
+        echo "Directory $HOME/$DIR does not exist. Creating directory.";
+        mkdir $HOME/$DIR
+    fi
+
+    #unmount previous mounts
+    echo Unmounting $HOME/$DIR
+    smbumount $HOME/$DIR
 
+    echo "Mounting $SHARE"
+    smbmount $SHARE $HOME/$DIR -o user=$USER%$PASS
 done
 
 

Modified: trunk/tools/subversion/pisa_runautobuild
==============================================================================
--- trunk/tools/subversion/pisa_runautobuild    Thu Oct  8 17:11:42 2009        
(r1060)
+++ trunk/tools/subversion/pisa_runautobuild    Thu Oct  8 17:21:45 2009        
(r1061)
@@ -41,7 +41,7 @@
 
 # Compile PISA
 run_program ./autogen.sh && run_program ./configure &&
-    run_program make -j16 && run_program make -j16 dist 
+    run_program make -j16 && run_program make -j16 dist
 
 # Compile PISA within an OpenWrt checkout
 run_program rm -f $BUILD_DIR/openwrt/dl/pisa*.tar.gz

Other related posts:

  • » [pisa-src] r1061 - in trunk/tools: . subversion - Diego Biurrun