6 Here are some of the scripts I use to make development easier.
8 First, I use 'cporig' on every file I am about to change. This makes a
9 copy with the extension .orig. If an .orig already exists, I am warned.
11 I can get really fancy with this. I can do 'cporig *' and make a .orig
12 for every file in the current directory. I can:
14 cporig `grep -l HeapTuple *`
16 If I use mkid (from ftp.postgreSQL.org), I can do:
18 cporig `lid -kn 'fsyncOff'`
20 and get a copy of every file containing that word. I can then do:
22 vi `find . -name '*.orig'`
24 or even better (using mkid):
28 to edit all those files.
30 When I am ready to generate a patch, I run 'difforig' command from the top of
33 I pipe the output of this to a file to hold my patch, and the file names
34 it processes appear on my screen. It creates a nice patch for me of all
35 the files I used with cporig.
37 Finally, I remove my old copies with 'rmorig'.