1
Bruce Momjian <pgman@candle.pha.pa.us>
3
Here are some of the scripts I use to make development easier.
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.
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:
11
cporig `grep -l HeapTuple *`
13
If I use mkid (from ftp.postgreSQL.org), I can do:
15
cporig `lid -kn 'fsyncOff'`
17
and get a copy of every file containing that word. I can then do:
19
vi `find . -name '*.orig'`
21
or even better (using mkid):
25
to edit all those files.
27
When I am ready to generate a patch, I run 'difforig' command from the top of
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.
34
Finally, I remove my old copies with 'rmorig'.