Fix running in-place gen_contents_index; trac #3716
authorIan Lynagh <igloo@earth.li>
Fri, 8 Jan 2010 13:34:16 +0000 (13:34 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 8 Jan 2010 13:34:16 +0000 (13:34 +0000)
It was making incorrect URLs due to a shell script error.

libraries/gen_contents_index

index de5b267..dbeb872 100644 (file)
@@ -16,7 +16,7 @@ case $* in
         NAME=`echo "$HADDOCK_FILE" | sed 's#.*/##' | sed 's#\.haddock$##'`
         # It's easier to portably remove tabs with tr than to try to get
         # sed to do what we want
-        VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*://'` | tr -d ' \t'
+        VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*://' | tr -d ' \t'`
         HADDOCK_ARG="--read-interface=${NAME}-${VERSION},$HADDOCK_FILE"
         HADDOCK_ARGS="$HADDOCK_ARGS $HADDOCK_ARG"
     done