Permalink
Browse files

Amélioration du README.doc et de l'installation de la doc

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11591 85f007b7-540e-0410-9357-904b9bb8a0f7
  • Loading branch information...
1 parent fdf0426 commit dbc7cc0632d15a48ee8c695b84099c96d940821d notin committed Nov 14, 2008
Showing with 15 additions and 6 deletions.
  1. +10 −1 INSTALL.doc
  2. +3 −3 configure
  3. +2 −2 tools/coqdoc/main.ml
View
@@ -33,6 +33,15 @@ To produce the html documents, the following tools are needed:
- hevea (e.g. 1.07 works)
+
+Under Debian based operating systems (Debian, Ubuntu, ...) a
+working set of packages for compiling the documentation for Coq is:
+
+ texlive texlive-latex-extra texlive-math-extra texlive-fonts-extra
+ texlive-lang-french texlive-humanities texlive-pictures latex-xcolor
+ hevea netpbm
+
+
Compilation
-----------
@@ -75,7 +84,7 @@ To install all produced documents, do:
make DOCDIR=/some/directory/for/documentation install-doc
-DOCDIR defauts to /usr/share/doc/coq-x.y were x.y is the version number
+DOCDIR defauts to /usr/share/doc/coq
View
@@ -689,7 +689,7 @@ case $ARCH in
bindir_def=/usr/local/bin
libdir_def=/usr/local/lib/coq
mandir_def=/usr/local/man
- docdir_def=/usr/local/share/doc
+ docdir_def=/usr/local/share/doc/coq
emacslib_def=/usr/local/share/emacs/site-lisp
coqdocdir_def=/usr/local/share/texmf/tex/latex/misc;;
esac
@@ -738,7 +738,7 @@ esac
case $docdir_spec/$prefix_spec/$local in
yes/*/*) DOCDIR=$docdir;;
- */yes/*) DOCDIR=$prefix/share/doc ;;
+ */yes/*) DOCDIR=$prefix/share/doc/coq ;;
*/*/true) DOCDIR=$COQTOP/man ;;
*) echo "Where should I install the Coq documentation [$docdir_def] ?"
read DOCDIR
@@ -840,7 +840,7 @@ echo " Paths for true installation:"
echo " binaries will be copied in $BINDIR"
echo " library will be copied in $LIBDIR"
echo " man pages will be copied in $MANDIR"
-echo " documentation will be copied in $MANDIR"
+echo " documentation will be copied in $DOCDIR"
echo " emacs mode will be copied in $EMACSLIB"
echo ""
View
@@ -439,13 +439,13 @@ let produce_document l =
(if !target_language=HTML then
let src = (Filename.concat !Cdglobals.coqlib_path "/tools/coqdoc/coqdoc.css") in
let dst = if !output_dir <> "" then Filename.concat !output_dir "coqdoc.css" else "coqdoc.css" in
- copy src dst);
+ if (Sys.file_exists src) then (copy src dst) else eprintf "Warning: file %s does not exist\n" src);
(if !target_language=LaTeX then
let src = (Filename.concat !Cdglobals.coqlib_path "/tools/coqdoc/coqdoc.sty") in
let dst = if !output_dir <> "" then
Filename.concat !output_dir "coqdoc.sty"
else "coqdoc.sty" in
- copy src dst);
+ if Sys.file_exists src then copy src dst else eprintf "Warning: file %s does not exist\n" src);
(match !Cdglobals.glob_source with
| NoGlob -> ()
| DotGlob -> ignore (List.map read_glob l)

0 comments on commit dbc7cc0

Please sign in to comment.