Rearranged whitespace (and comments) in all the code!
[mmh] / config / version.sh
index 1ff7eed..61d9637 100755 (executable)
@@ -6,8 +6,8 @@
 #
 
 if [ -z "$1" ]; then
-    echo "usage: version.sh VERSION" 1>&2
-    exit 1
+       echo "usage: version.sh VERSION" 1>&2
+       exit 1
 fi
 
 VERSION=$1
@@ -18,22 +18,24 @@ HOSTNAME=unknown
 # Find out the name of the host we are compiling on
 for prog in uname hostname
 do
-    for dir in $PATH
-    do
-       if [ ! -f $dir/$prog ]; then
-           continue
+       for dir in $PATH
+       do
+               if [ ! -f $dir/$prog ]; then
+                       continue
+               fi
+               case $prog in
+                       uname)
+                               HOSTNAME=`$prog -n`
+                               ;;
+                       hostname)
+                               HOSTNAME=`$prog`
+                               ;;
+               esac
+               break
+       done
+       if [ X"$HOSTNAME" != X  -a  X"$HOSTNAME" != Xunknown ]; then
+               break
        fi
-       case $prog in
-           uname)      HOSTNAME=`$prog -n`
-                       ;;
-           hostname)   HOSTNAME=`$prog`
-                       ;;
-       esac
-       break
-    done
-    if [ X"$HOSTNAME" != X  -a  X"$HOSTNAME" != Xunknown ]; then
-       break
-    fi
 done
 
 IFS=" "