hgbook

diff fr/appC-srcinstall.xml @ 964:6b680d569bb4

deleting a bunch of files not longer necessary to build the documentation.
Adding missing newly files needed to build the documentation
author Romain PELISSE <belaran@gmail.com>
date Sun Aug 16 04:58:01 2009 +0200 (2009-08-16)
parents en/appC-srcinstall.xml@1c13ed2130a7
children 4a6a34e1586e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fr/appC-srcinstall.xml	Sun Aug 16 04:58:01 2009 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +<!-- vim: set filetype=docbkxml shiftwidth=2 autoindent expandtab tw=77 : -->
     1.5 +
     1.6 +<appendix id="chap:srcinstall">
     1.7 +  <?dbhtml filename="installing-mercurial-from-source.html"?>
     1.8 +  <title>Installing Mercurial from source</title>
     1.9 +
    1.10 +  <sect1 id="sec:srcinstall:unixlike">
    1.11 +    <title>On a Unix-like system</title>
    1.12 +
    1.13 +    <para id="x_5e0">If you are using a Unix-like system that has a sufficiently
    1.14 +      recent version of Python (2.3 or newer) available, it is easy to
    1.15 +      install Mercurial from source.</para>
    1.16 +    <orderedlist>
    1.17 +      <listitem><para id="x_5e1">Download a recent source tarball from <ulink
    1.18 +	    url="http://www.selenic.com/mercurial/download">http://www.selenic.com/mercurial/download</ulink>.</para>
    1.19 +      </listitem>
    1.20 +      <listitem><para id="x_5e2">Unpack the tarball:</para>
    1.21 +	<programlisting>gzip -dc mercurial-MYVERSION.tar.gz | tar xf -</programlisting>
    1.22 +      </listitem>
    1.23 +      <listitem><para id="x_5e3">Go into the source directory and run the
    1.24 +	  installer script.  This will build Mercurial and install it
    1.25 +	  in your home directory.</para>
    1.26 +	<programlisting>cd mercurial-MYVERSION
    1.27 +python setup.py install --force --home=$HOME</programlisting>
    1.28 +      </listitem>
    1.29 +    </orderedlist>
    1.30 +    <para id="x_5e4">Once the install finishes, Mercurial will be in the
    1.31 +      <literal>bin</literal> subdirectory of your home directory.
    1.32 +      Don't forget to make sure that this directory is present in your
    1.33 +      shell's search path.</para>
    1.34 +
    1.35 +    <para id="x_5e5">You will probably need to set the <envar>PYTHONPATH</envar>
    1.36 +      environment variable so that the Mercurial executable can find
    1.37 +      the rest of the Mercurial packages.  For example, on my laptop,
    1.38 +      I have set it to <literal>/home/bos/lib/python</literal>.  The
    1.39 +      exact path that you will need to use depends on how Python was
    1.40 +      built for your system, but should be easy to figure out.  If
    1.41 +      you're uncertain, look through the output of the installer
    1.42 +      script above, and see where the contents of the
    1.43 +      <literal>mercurial</literal> directory were installed to.</para>
    1.44 +
    1.45 +  </sect1>
    1.46 +  <sect1>
    1.47 +    <title>On Windows</title>
    1.48 +
    1.49 +    <para id="x_5e6">Building and installing Mercurial on Windows requires a
    1.50 +      variety of tools, a fair amount of technical knowledge, and
    1.51 +      considerable patience.  I very much <emphasis>do not
    1.52 +	recommend</emphasis> this route if you are a <quote>casual
    1.53 +	user</quote>.  Unless you intend to hack on Mercurial, I
    1.54 +      strongly suggest that you use a binary package instead.</para>
    1.55 +
    1.56 +    <para id="x_5e7">If you are intent on building Mercurial from source on
    1.57 +      Windows, follow the <quote>hard way</quote> directions on the
    1.58 +      Mercurial wiki at <ulink
    1.59 +	url="http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall">http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstall</ulink>, 
    1.60 +      and expect the process to involve a lot of fiddly work.</para>
    1.61 +
    1.62 +  </sect1>
    1.63 +</appendix>
    1.64 +
    1.65 +<!--
    1.66 +local variables: 
    1.67 +sgml-parent-document: ("00book.xml" "book" "appendix")
    1.68 +end:
    1.69 +-->