summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-11-10 18:00:14 +0000
committerIan Lynagh <igloo@earth.li>2007-11-10 18:00:14 +0000
commit79af64593a0dde840f08bb58844e80f9f528b530 (patch)
treed48aa68fd2e9387c5ba9033fbea44b35474251fd /libraries/gen_contents_index
parent4df1081518de964b5815f4dec81bf8cdf915c2f7 (diff)
downloadhaskell-79af64593a0dde840f08bb58844e80f9f528b530.tar.gz
Tweak gen_contents_index to work with Solaris's sh
Diffstat (limited to 'libraries/gen_contents_index')
-rw-r--r--libraries/gen_contents_index2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index
index 393a8790fc..fd9048b0be 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