joachim99@2
|
1 KDiff3-Readme
|
joachim99@2
|
2 =============
|
joachim99@2
|
3
|
joachim99@2
|
4 Author: Joachim Eibl (joachim.eibl@gmx.de)
|
joachim99@12
|
5 Copyright: (C) 2002-2003 by Joachim Eibl
|
joachim99@53
|
6 KDiff3-Version: 0.9.81
|
joachim99@2
|
7
|
joachim99@2
|
8
|
joachim99@2
|
9 KDiff3 is a program that
|
joachim99@53
|
10 - compares and merges two or three input files or directories,
|
joachim99@2
|
11 - shows the differences line by line and character by character (!),
|
joachim99@2
|
12 - provides an automatic merge-facility and
|
joachim99@2
|
13 - an integrated editor for comfortable solving of merge-conflicts
|
joachim99@53
|
14 - has support for KDE-KIO (ftp, sftp, http, fish, smb)
|
joachim99@53
|
15 - and has an intuitive graphical user interface.
|
joachim99@53
|
16
|
joachim99@53
|
17
|
joachim99@53
|
18 Do you want help translating? Read the README in the po-subdirectory!
|
joachim99@2
|
19
|
joachim99@2
|
20
|
joachim99@2
|
21 Licence:
|
joachim99@2
|
22 GNU GENERAL PUBLIC LICENSE, Version 2, June 1991
|
joachim99@2
|
23 This program is free software; you can redistribute it and/or modify
|
joachim99@2
|
24 it under the terms of the GNU General Public License as published by
|
joachim99@2
|
25 the Free Software Foundation; either version 2 of the License, or
|
joachim99@2
|
26 (at your option) any later version.
|
joachim99@2
|
27
|
joachim99@2
|
28 This program is distributed in the hope that it will be useful,
|
joachim99@2
|
29 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
joachim99@2
|
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
joachim99@2
|
31 GNU General Public License for more details.
|
joachim99@2
|
32
|
joachim99@2
|
33 You should have received a copy of the GNU General Public License
|
joachim99@2
|
34 along with this program; if not, write to the Free Software
|
joachim99@2
|
35 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
joachim99@2
|
36
|
joachim99@2
|
37 For details see file "COPYING".
|
joachim99@2
|
38
|
joachim99@12
|
39 Exception from the GPL:
|
joachim99@12
|
40 As a special exception, the copyright holder Joachim Eibl gives permission
|
joachim99@12
|
41 to link this program with the Qt-library (commercial or non-commercial edition)
|
joachim99@12
|
42 from Trolltech (www.trolltech.com), and he permits to distribute the resulting
|
joachim99@12
|
43 executable, without including the source code for the Qt-library in the
|
joachim99@12
|
44 source distribution.
|
joachim99@12
|
45
|
joachim99@2
|
46
|
joachim99@2
|
47 Requirements & Installation:
|
joachim99@53
|
48 Version 0.9.81 provides special support for KDE3, but it can also be
|
joachim99@12
|
49 built without KDE3 if the Qt-libraries are available.
|
joachim99@12
|
50 (I also tested the program under Windows.)
|
joachim99@2
|
51
|
joachim99@12
|
52 You always need
|
joachim99@53
|
53 - kdiff3-0.9.81.tar.gz
|
joachim99@2
|
54
|
joachim99@12
|
55 For building the KDE3-version
|
joachim99@12
|
56 - KDE>=3.1 and QT>=3.1-libraries.
|
joachim99@12
|
57 - gcc, g++ with version >=3.2
|
joachim99@12
|
58
|
joachim99@12
|
59 For building the Qt-only-version
|
joachim99@53
|
60 - QT-libraries (version >=3.1.0).
|
joachim99@12
|
61 (www.trolltech.com)
|
joachim99@12
|
62 - for Un*x: gcc, g++ with version >=3.2
|
joachim99@12
|
63 - for Windows: VC6
|
joachim99@12
|
64
|
joachim99@2
|
65
|
joachim99@2
|
66 Installation for KDE3:
|
joachim99@2
|
67 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR).
|
joachim99@2
|
68 If it doesn't contain the correct path, type
|
joachim99@2
|
69 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt3)
|
joachim99@53
|
70 - cd into the directory kdiff3-0.9.81 and type
|
joachim99@12
|
71 - ./configure --prefix=/opt/kde3 (your KDE3 directory here)
|
joachim99@12
|
72 - (make clean) (Required if you already compiled once.)
|
joachim99@12
|
73 - make (Run compilation)
|
joachim99@12
|
74 - make install (You must have root-rights for this step.)
|
joachim99@2
|
75
|
joachim99@2
|
76 For details also see the generic instructions in file "INSTALL".
|
joachim99@2
|
77
|
joachim99@12
|
78 If some icons are not visible or don't seem right, probably the prefix
|
joachim99@12
|
79 was wrong. Check where your KDE3 installation is located and
|
joachim99@12
|
80 use that directory with the prefix-option of configure.
|
joachim99@12
|
81 For SuSE and most distributions the prefix usually is /opt/kde3.
|
joachim99@12
|
82 For Redhat and Mandrake the prefix usually is /usr.
|
joachim99@12
|
83 For a local installation, that doesn't need root rights try
|
joachim99@12
|
84 - ./configure --prefix=$KDEHOME ($KDEHOME probably is the same as $HOME/.kde)
|
joachim99@12
|
85 - make
|
joachim99@12
|
86 - make install (Installs everything in $KDEHOME. No root rights required.)
|
joachim99@12
|
87 - Run $KDEHOME/bin/kdiff3. ($KDEHOME/bin is probably not in your path.)
|
joachim99@12
|
88 Warning: If a local installation and a global installation exist, the local
|
joachim99@12
|
89 menu, toolbar, help etc. will be used, even if you start the global
|
joachim99@12
|
90 executable. To avoid confusion, better remove the local version then.
|
joachim99@12
|
91 (rm -R `find $KDEHOME -name "*kdiff3*" -not -name "kdiff3*rc"`)
|
joachim99@12
|
92
|
joachim99@53
|
93 Upgrading KDiff3 for KDE:
|
joachim99@53
|
94 If you already installed an older version or KDiff3 and you have the
|
joachim99@53
|
95 impression, that the new version doesn't work as described, you should try to
|
joachim99@53
|
96 remove all files belonging to KDiff3 before reinstalling.
|
joachim99@53
|
97 Try this search command to locate KDiff3-related files:
|
joachim99@53
|
98 find $HOME/.kde /usr /opt -iname "*kdiff3*"
|
joachim99@53
|
99 (Will take a few minutes.)
|
joachim99@53
|
100
|
joachim99@53
|
101
|
joachim99@12
|
102
|
joachim99@12
|
103 Installation for the Qt-only-platforms for Un*x:
|
joachim99@12
|
104 (for Qt >=3.1.0)
|
joachim99@12
|
105 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR).
|
joachim99@12
|
106 If it doesn't contain the correct path, type
|
joachim99@12
|
107 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt)
|
joachim99@53
|
108 - cd into the directory kdiff3-0.9.81/src and type
|
joachim99@12
|
109 - make -f Makefile.qt
|
joachim99@12
|
110 - make -f Makefile.qt install (You must have root-rights for this step.)
|
joachim99@12
|
111 (copies the files into /usr/local/bin and /usr/local/share/doc/kdiff3)
|
joachim99@12
|
112 - Note: The file kdiff3.pro was used to generate the Makefile.qt:
|
joachim99@12
|
113 qmake kdiff3.pro -o Makefile.qt
|
joachim99@12
|
114
|
joachim99@12
|
115
|
joachim99@12
|
116
|
joachim99@12
|
117 Build for Windows:
|
joachim99@53
|
118 Use qmake and kdiff3.pro to generate
|
joachim99@12
|
119 an appropriate Makefile.
|
joachim99@12
|
120 qmake kdiff3.pro -o Makefile
|
joachim99@12
|
121
|
joachim99@12
|
122
|
joachim99@12
|
123 Build for Mac:
|
joachim99@12
|
124 - I couldn't test this, so you might have to experiment a bit.
|
joachim99@12
|
125 - Start by generating a Makefile with
|
joachim99@12
|
126 - qmake kdiff3.pro -o Makefile
|
joachim99@12
|
127 - If you succeed, I'd like to know how so I can document it here.
|
joachim99@12
|
128
|
joachim99@53
|
129
|
joachim99@2
|
130 Start from commandline:
|
joachim99@2
|
131 - Comparing 2 files: kdiff3 file1 file2
|
joachim99@2
|
132 - Merging 2 files: kdiff3 file1 file2 -o outputfile
|
joachim99@2
|
133 - Comparing 3 files: kdiff3 file1 file2 file3
|
joachim99@2
|
134 - Merging 3 files: kdiff3 file1 file2 file3 -o outputfile
|
joachim99@2
|
135 Note that file1 will be treated as base of file2 and file3.
|
joachim99@2
|
136
|
joachim99@12
|
137 If all files have the same name but are in different directories, you can
|
joachim99@12
|
138 reduce typework by specifying the filename only for the first file. E.g.:
|
joachim99@12
|
139 - Comparing 3 files: kdiff3 dir1/filename dir2 dir3
|
joachim99@12
|
140 (This also works in the open-dialog.)
|
joachim99@12
|
141
|
joachim99@2
|
142 If you start without arguments, then a dialog will appear where you can
|
joachim99@2
|
143 select your files via a filebrowser.
|
joachim99@2
|
144
|
joachim99@2
|
145 For more documentation, see the help-menu or the subdirectory doc.
|
joachim99@2
|
146
|
joachim99@2
|
147 Have fun!
|