[Pkg-haskell-commits] darcs: haskell-hoogle: Convert txt to hoo directly.

kiwamu at debian.or.jp kiwamu at debian.or.jp
Thu Oct 4 16:49:37 UTC 2012


Thu Oct  4 16:45:32 UTC 2012  kiwamu at debian.or.jp
  * Convert txt to hoo directly.
  Ignore-this: 5031113ff13f2395f1749779d25c2ac4

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

Thu Oct  4 16:45:32 UTC 2012  kiwamu at debian.or.jp
  * Convert txt to hoo directly.
  Ignore-this: 5031113ff13f2395f1749779d25c2ac4
diff -rN -u old-haskell-hoogle//files_hoogle/update-hoogle new-haskell-hoogle//files_hoogle/update-hoogle
--- old-haskell-hoogle//files_hoogle/update-hoogle	2012-10-04 16:49:37.775926232 +0000
+++ new-haskell-hoogle//files_hoogle/update-hoogle	2012-10-04 16:49:37.791719224 +0000
@@ -15,18 +15,11 @@
 # new database
 $HOOGLE data keyword
 
-TXTFILES=`find /usr/lib/ghc-doc/hoogle/ -name "*.txt" 2>/dev/null`
-if [ "$TXTFILES" = "" ]; then
-  echo "No txt files on /usr/lib/ghc-doc/hoogle/ dir..."
-else 
-  echo "Collect txt files from /usr/lib/ghc-doc/hoogle/ dir"
-  cp $TXTFILES $DATABASE_DIR/
-fi
-
 # convert
-for i in $DATABASE_DIR/*.txt; do
+TXTFILES=`find /usr/lib/ghc-doc/hoogle/ -name "*.txt"`
+for i in $TXTFILES; do
     echo "Convert $i"
-    $HOOGLE convert $i >/dev/null 2>&1
+    $HOOGLE convert $i $DATABASE_DIR/`basename $i`.hoo >/dev/null 2>&1
 done
 
 # combine





More information about the Pkg-haskell-commits mailing list