Fix a bug in gen_contents_index
authorIan Lynagh <igloo@earth.li>
Wed, 12 Dec 2007 12:11:54 +0000 (12:11 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 12 Dec 2007 12:11:54 +0000 (12:11 +0000)
The library doc index thought that the docs were in $module.html, rather
than $package/$module.html.

libraries/gen_contents_index

index 5cee6e3..4ddb58a 100644 (file)
@@ -16,7 +16,7 @@ esac
 
 for HADDOCK_FILE in $HADDOCK_FILES
 do
-    NAME=`echo "$DIR" | sed 's#/.*##'`
+    NAME=`echo "$HADDOCK_FILE" | sed 's#/.*##'`
     HADDOCK_ARGS="$HADDOCK_ARGS --read-interface=$NAME,$HADDOCK_FILE"
     NAMES="$NAMES $NAME"
 done