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 6c9000234e3a1d865a6cad02878711e6
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: Massimo Dal Zotto
Date:
Subject: [HACKERS] trace package (for 970601)
Next
From: Igor
Date:
Subject: Re: [HACKERS] 6.1 progress