• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..08-Nov-2021-

READMEH A D08-Nov-2021993 4023

cporigH A D08-Nov-2021150 127

difforigH A D08-Nov-2021246 1510

rmorigH A D08-Nov-2021135 105

README

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