Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
64bb8c51
Commit
64bb8c51
authored
Oct 16, 2010
by
Ian Lynagh
Browse files
Only put the boot packages in the haddock contents/index
We don't install dph etc, so don't put them in the doc index.
parent
f93092f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/gen_contents_index
View file @
64bb8c51
...
...
@@ -7,21 +7,19 @@ HADDOCK_ARGS=
case
$*
in
--inplace
)
HADDOCK
=
../inplace/bin/haddock
HADDOCK_FILES
=
`
ls
-1
*
/dist-install/doc/html/
*
/
*
.haddock |
sort
`
if
[
-d
dph
]
then
DPH_HADDOCK_FILES
=
`
ls
-1
dph/
*
/dist-install/doc/html/
*
/
*
.haddock |
sort
`
HADDOCK_FILES
=
"
$HADDOCK_FILES
$DPH_HADDOCK_FILES
"
fi
for
HADDOCK_FILE
in
$HADDOCK_FILES
for
LIB
in
`
grep
'^libraries/[^ ]\+ \+- \+[^ ]\+ \+[^ ]\+ \+[^ ]\+'
../packages |
sed
-e
's#libraries/##'
-e
's/ .*//'
`
do
LIBPATH
=
`
echo
"
$HADDOCK_FILE
"
|
sed
's#/dist-install.*##'
`
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'
`
HADDOCK_ARG
=
"--read-interface=
${
NAME
}
-
${
VERSION
}
,
$HADDOCK_FILE
"
HADDOCK_ARGS
=
"
$HADDOCK_ARGS
$HADDOCK_ARG
"
HADDOCK_FILE
=
"
$LIB
/dist-install/doc/html/
$LIB
/
$LIB
.haddock"
if
[
-f
"
$HADDOCK_FILE
"
]
then
LIBPATH
=
`
echo
"
$HADDOCK_FILE
"
|
sed
's#/dist-install.*##'
`
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'
`
HADDOCK_ARG
=
"--read-interface=
${
NAME
}
-
${
VERSION
}
,
$HADDOCK_FILE
"
HADDOCK_ARGS
=
"
$HADDOCK_ARGS
$HADDOCK_ARG
"
fi
done
;;
*
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment