]> xenbits.xensource.com Git - raisin.git/commitdiff
Fix up coding style
authorDoug Goldstein <cardoe@cardoe.com>
Wed, 9 Sep 2015 15:08:26 +0000 (10:08 -0500)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 11 Sep 2015 14:58:24 +0000 (14:58 +0000)
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
lib/git-checkout.sh
scripts/mkdeb

index 2ca8f25ab3faa529f1749c1d8f6233db035abebf..d4624537cb879368036e54bed657a8adaadc22db 100755 (executable)
@@ -3,8 +3,8 @@
 function git-checkout() {
     if [[ $# -lt 3 ]]
     then
-       echo "Usage: $0 <tree> <tag> <dir>"
-       exit 1
+        echo "Usage: $0 <tree> <tag> <dir>"
+        exit 1
     fi
 
     TREE=$1
@@ -15,17 +15,17 @@ function git-checkout() {
 
     if [[ ! -d $DIR-remote ]]
     then
-       rm -rf $DIR-remote $DIR-remote.tmp
-       mkdir -p $DIR-remote.tmp; rmdir $DIR-remote.tmp
-       $GIT clone $TREE $DIR-remote.tmp
-       if [[ "$TAG" ]]
-       then
-           cd $DIR-remote.tmp
-           $GIT branch -D dummy >/dev/null 2>&1 ||:
-           $GIT checkout -b dummy $TAG
-           cd ..
-       fi
-       mv $DIR-remote.tmp $DIR-remote
+        rm -rf $DIR-remote $DIR-remote.tmp
+        mkdir -p $DIR-remote.tmp; rmdir $DIR-remote.tmp
+        $GIT clone $TREE $DIR-remote.tmp
+        if [[ "$TAG" ]]
+        then
+            cd $DIR-remote.tmp
+            $GIT branch -D dummy >/dev/null 2>&1 ||:
+            $GIT checkout -b dummy $TAG
+            cd ..
+        fi
+        mv $DIR-remote.tmp $DIR-remote
     fi
     rm -f $DIR
     ln -sf $DIR-remote $DIR
index 5259f1ef5ed7a028f97dd3fab3ffa26e439db810..37963007bc45457f69bf8d8af4fc60723cb861b5 100755 (executable)
@@ -9,8 +9,8 @@ set -e
 
 if [[ -z "$1" ]]
 then
-  echo "usage: $0 package_name"
-  exit 1
+    echo "usage: $0 package_name"
+    exit 1
 fi
 
 name=$1
@@ -19,13 +19,13 @@ cd "$BASEDIR"
 
 # map the architecture, if necessary
 case "$RAISIN_ARCH" in
-  x86_32|x86_32p)  arch=i386 ;;
-  x86_64)  arch=amd64 ;;
-  arm32)   arch=armhf ;;
-  arm64)   arch=$RAISIN_ARCH;;
-  *) echo "Unknown ARCH $RAISIN_ARCH" >&2
-     exit 1
-     ;;
+    x86_32|x86_32p)  arch=i386 ;;
+    x86_64)  arch=amd64 ;;
+    arm32)   arch=armhf ;;
+    arm64)   arch=$RAISIN_ARCH;;
+    *) echo "Unknown ARCH $RAISIN_ARCH" >&2
+       exit 1
+       ;;
 esac
 
 # Prepare the directory to package
@@ -42,8 +42,8 @@ cp config raise deb/opt/raisin
 # Debian doesn't use /usr/lib64 for 64-bit libraries
 if [[ -d deb/usr/lib64 ]]
 then
-  cp -a deb/usr/lib64/* deb/usr/lib/
-  rm -rf deb/usr/lib64
+    cp -a deb/usr/lib64/* deb/usr/lib/
+    rm -rf deb/usr/lib64
 fi
 
 # Fill in the debian boilerplate