~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/tools/make_diff/README

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Bruce Momjian <pgman@candle.pha.pa.us>
 
2
 
 
3
Here are some of the scripts I use to make development easier.
 
4
 
 
5
First, I use 'cporig' on every file I am about to change.  This makes a
 
6
copy with the extension .orig.  If an .orig already exists, I am warned.
 
7
 
 
8
I can get really fancy with this.  I can do 'cporig *' and make a .orig
 
9
for every file in the current directory.  I can:
 
10
 
 
11
        cporig `grep -l HeapTuple *`
 
12
 
 
13
If I use mkid (from ftp.postgreSQL.org), I can do:
 
14
        
 
15
        cporig `lid -kn 'fsyncOff'`
 
16
 
 
17
and get a copy of every file containing that word.  I can then do:
 
18
 
 
19
        vi `find . -name '*.orig'`
 
20
 
 
21
or even better (using mkid):
 
22
 
 
23
        eid fsyncOff
 
24
 
 
25
to edit all those files.
 
26
 
 
27
When I am ready to generate a patch, I run 'difforig' command from the top of
 
28
the source tree:
 
29
        
 
30
I pipe the output of this to a file to hold my patch, and the file names
 
31
it processes appear on my screen.  It creates a nice patch for me of all
 
32
the files I used with cporig.
 
33
 
 
34
Finally, I remove my old copies with 'rmorig'.
 
35