Re: [HACKERS] How to submit a patch. - Mailing list pgsql-hackers

From Martin J. Laubach
Subject Re: [HACKERS] How to submit a patch.
Date
Msg-id bba1de9a26dd5280f047e531379ef750
Whole thread Raw
In response to [HACKERS] How to submit a patch.  (David Friend <dfriend@atlsci.atlsci.com>)
List pgsql-hackers
  Here is my catch all solution for diffs. Whenever I change a file,
I copy it on filename.orig. When you run the script from the
pg directory, it will create a file "this.patch" containing a
diff for everything that changed...

    mjl

- ----
#!/bin/csh

rm -f this.patch
touch this.patch

foreach n (`find . -name \*.orig -print`)
    set x=`dirname $n`/`basename $n .orig`
    if( -z $n ) then
        set n='/dev/null'
    endif

    echo "Diffing $x against $n"
    diff -abcdp $n $x >> this.patch

    rm -f $n
    cp $x $x.new
end

------------------------------

pgsql-hackers by date:

Previous
From: "Vadim B. Mikheev"
Date:
Subject: fixed: Re: [HACKERS] Bug in CREATE TABLE
Next
From: Bruce Momjian
Date:
Subject: [HACKERS] memory leak detection