[Pkg-haskell-commits] darcs: haskell-hoogle: Style changes in update-hoogle

Iustin Pop iustin at debian.org
Sun Sep 21 19:23:44 UTC 2014


Sun Sep 21 18:28:53 UTC 2014  Iustin Pop <iustin at debian.org>
  * Style changes in update-hoogle
  
  Just more consistent indendation (2-space, instead of mixed 4-spaces and tabs),
  and a few other minor style changes.
  

    M ./files_hoogle/update-hoogle -10 +9

Sun Sep 21 18:28:53 UTC 2014  Iustin Pop <iustin at debian.org>
  * Style changes in update-hoogle
  
  Just more consistent indendation (2-space, instead of mixed 4-spaces and tabs),
  and a few other minor style changes.
  
diff -rN -u old-haskell-hoogle/files_hoogle/update-hoogle new-haskell-hoogle/files_hoogle/update-hoogle
--- old-haskell-hoogle/files_hoogle/update-hoogle	2014-09-21 19:23:43.902273938 +0000
+++ new-haskell-hoogle/files_hoogle/update-hoogle	2014-09-21 19:23:43.922273939 +0000
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 readlinks() {
-    for i in $*; do
-	readlink -f $i
-    done
+  for i in $*; do
+    readlink -f $i
+  done
 }
 
 DATABASE_DIR=/var/lib/hoogle/databases
@@ -25,14 +25,13 @@
 TXTFILES_SYM=`find /usr/lib/ghc-doc/hoogle/ -name "*.txt"`
 TXTFILES=`readlinks $TXTFILES_SYM`
 for i in $TXTFILES; do
-    if [ -r "$i" ]
-    then
-        echo -n "."
-        $HOOGLE convert $i $DATABASE_DIR/`basename $i`.hoo --addlocation >/dev/null 2>&1
-    fi
+  if [ -r "$i" ]; then
+    echo -n "."
+    $HOOGLE convert $i $DATABASE_DIR/`basename $i`.hoo --addlocation >/dev/null 2>&1
+  fi
 done
 echo " done"
 
 # combine
-find $DATABASE_DIR -name \*.hoo -print0 |
-	xargs -0 -- hoogle combine -o $DATABASE_DIR/default.hoo
+find $DATABASE_DIR -name \*.hoo -print0 | \
+  xargs -0 -- hoogle combine -o $DATABASE_DIR/default.hoo




More information about the Pkg-haskell-commits mailing list