|
@@ -16,16 +16,18 @@ with **auto pager**. Requires python (>= 2.5.0) and ``less``.
|
16
|
16
|
Installation
|
17
|
17
|
------------
|
18
|
18
|
|
19
|
|
-**Install with pip**
|
|
19
|
+Install with pip
|
|
20
|
+~~~~~~~~~~~~~~~~
|
20
|
21
|
|
21
|
|
-Cdiff is already listed on `PyPI <http://pypi.python.org/pypi/cdiff>`, you can
|
|
22
|
+Cdiff is already listed on `PyPI <http://pypi.python.org/pypi/cdiff>`_, you can
|
22
|
23
|
install with ``pip`` if you have the tool.
|
23
|
24
|
|
24
|
25
|
.. code:: sh
|
25
|
26
|
|
26
|
27
|
sudo pip install cdiff
|
27
|
28
|
|
28
|
|
-**Install with setup.py**
|
|
29
|
+Install with setup.py
|
|
30
|
+~~~~~~~~~~~~~~~~~~~~~
|
29
|
31
|
|
30
|
32
|
You can also run the setup.py from the source if you don't have ``pip``.
|
31
|
33
|
|
|
@@ -35,12 +37,13 @@ You can also run the setup.py from the source if you don't have ``pip``.
|
35
|
37
|
cd cdiff
|
36
|
38
|
sudo ./setup.py install
|
37
|
39
|
|
38
|
|
-**Download directly**
|
|
40
|
+Download directly
|
|
41
|
+~~~~~~~~~~~~~~~~~
|
39
|
42
|
|
40
|
43
|
Both ``pip`` and ``setup.py`` installs cdiff to system wide directory, if you
|
41
|
44
|
want a minimal tool without the boring external dependencies (like me), just
|
42
|
|
-save `src/cdiff.py <https://raw.github.com/ymattw/cdiff/master/src/cdiff.py>` to
|
43
|
|
-whatever directory which is in your ``$PATH``, for example, ``$HOME/bin`` is
|
|
45
|
+save `src/cdiff.py <https://raw.github.com/ymattw/cdiff/master/src/cdiff.py>`_
|
|
46
|
+to whatever directory which is in your ``$PATH``, for example, ``$HOME/bin`` is
|
44
|
47
|
in my ``$PATH``, so I save the script there and name as ``cdiff``.
|
45
|
48
|
|
46
|
49
|
.. code:: sh
|