source: rtems/doc/FAQ/tools.t @ 2bd9383

4.104.114.84.95
Last change on this file since 2bd9383 was 2bd9383, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/99 at 15:15:57

New file.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-1998.
3@c  On-Line Applications Research Corporation (OAR).
4@c  All rights reserved.
5@c
6@c  $Id$
7@c
8
9@chapter General Development Tool Hints
10
11The questions in this category are related to the GNU development tools
12in a non-language specific way.
13
14@section How do I generate a patch?
15
16The RTEMS patches to the development tools are generated using a
17command like this
18
19@example
20diff -N -P -r -c TOOL-original-image TOOL-with-changes >PATCHFILE
21@end example
22
23where the options are:
24
25@itemize @bullet
26
27@item -N and -P take care of adding and removing files (be careful not to
28>include junk files like file.mybackup)
29
30@item -r tells diff to recurse through subdirectories
31
32@item -c is a context diff (easy to read for humans)
33
34@end itemize
35
36Please look at the generated PATCHFILE and make sure it does not
37contain anything you did not intend to send to the maintainers. 
38It is easy to accidentally leave a backup file in the modified
39source tree or have a spurious change that should not be
40in the PATCHFILE.
41
42If you end up with the entire contents of a file in the patch
43and can't figure out why, you may have different CR/LF scheme
44in the two source files.  The GNU open-source packages usually have
45UNIX style CR/LF.  If you edit on a Windows platform, the line
46terminators may have been transformed by the editor into Windows
47style.
Note: See TracBrowser for help on using the repository browser.