[Pkg-haskell-commits] darcs: haskell-hoogle: Pass txt file location with following symlink.
kiwamu at debian.or.jp
kiwamu at debian.or.jp
Thu Oct 11 11:48:19 UTC 2012
Thu Oct 11 11:44:39 UTC 2012 kiwamu at debian.or.jp
* Pass txt file location with following symlink.
Ignore-this: b345f2579164ca58db80bd7a27c4a24c
M ./files_hoogle/update-hoogle -1 +8
Thu Oct 11 11:44:39 UTC 2012 kiwamu at debian.or.jp
* Pass txt file location with following symlink.
Ignore-this: b345f2579164ca58db80bd7a27c4a24c
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-11 11:48:19.079721059 +0000
+++ new-haskell-hoogle//files_hoogle/update-hoogle 2012-10-11 11:48:19.103719187 +0000
@@ -1,5 +1,11 @@
#!/bin/sh
+readlinks() {
+ for i in $*; do
+ readlink -f $i
+ done
+}
+
DATABASE_DIR=/var/lib/hoogle/databases
HOOGLE=/usr/bin/hoogle
URLPREFIX=http://localhost/cgi-bin/hoogle/file
@@ -17,7 +23,8 @@
# convert
echo -n "Converting databases."
-TXTFILES=`find /usr/lib/ghc-doc/hoogle/ -name "*.txt"`
+TXTFILES_SYM=`find /usr/lib/ghc-doc/hoogle/ -name "*.txt"`
+TXTFILES=`readlinks $TXTFILES_SYM`
for i in $TXTFILES; do
echo -n "."
$HOOGLE convert $i $DATABASE_DIR/`basename $i`.hoo >/dev/null 2>&1
More information about the Pkg-haskell-commits
mailing list