diff options
Diffstat (limited to 'p/haskell-hoogle')
-rwxr-xr-x | p/haskell-hoogle/debian/files_hoogle/update-hoogle | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/p/haskell-hoogle/debian/files_hoogle/update-hoogle b/p/haskell-hoogle/debian/files_hoogle/update-hoogle index ab9328fab..13a02c5b5 100755 --- a/p/haskell-hoogle/debian/files_hoogle/update-hoogle +++ b/p/haskell-hoogle/debian/files_hoogle/update-hoogle @@ -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 @@ echo -n "Converting databases." 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 |