diff options
author | Iustin Pop <iustin@debian.org> | 2014-09-21 22:28:53 +0400 |
---|---|---|
committer | Iustin Pop <iustin@debian.org> | 2014-09-21 22:28:53 +0400 |
commit | 9240dbd392d1eec7ecbc64d2304b8cb1dc2855ec (patch) | |
tree | 2032ba90b66d6613f336eb2949ec0f791fa94885 /p/haskell-hoogle | |
parent | b4d5c5f2e6c63779e8ad8feb89de225742e2d0d2 (diff) | |
download | DHG_packages-9240dbd392d1eec7ecbc64d2304b8cb1dc2855ec.tar.gz |
haskell-hoogle: 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.
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 |