X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2Fgen_contents_index;h=fd9048b0be54b9e9b0df771ee4389579cf84bb65;hb=876a71215ce555d1830aacc51076595a835ad699;hp=393a8790fcd7e6dca1b2cf3a8cf0beafa862db05;hpb=4d0d0e543940806dced227d628eca3bb0c1e4e27;p=ghc-hetmet.git diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index index 393a879..fd9048b 100644 --- a/libraries/gen_contents_index +++ b/libraries/gen_contents_index @@ -10,7 +10,7 @@ case $* in GHC_PKG=../utils/ghc-pkg/ghc-pkg-inplace for DIR in */ do - NAME=${DIR%/} + NAME=`echo "$DIR" | sed 's#/$##'` HADDOCK_FILE=$NAME/dist/doc/html/$NAME/$NAME.haddock if [ -f $HADDOCK_FILE ] then