Re: New copyright program - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: New copyright program
Date
Msg-id 201108191751.p7JHpv624893@momjian.us
Whole thread Raw
In response to New copyright program  (David Fetter <david@fetter.org>)
Responses Re: New copyright program
List pgsql-hackers
David Fetter wrote:
> Folks,
> 
> I noticed that src/tools/copyright looks like it can only be run on
> Bruce's machine, so this translation to Perl is intended:
> 
> 1.  To make the script idempotent, which allows its safe use in
> automated tools that might run it many times.
> 
> 2.  To get the script to run on any machine a PostgreSQL developer
> would be using, as Perl is already required.
> 
> 3.  To make the script more efficient.  As the copyright notice we
> need to munge only appears once per file, it stops once it has made a
> substitution.
> 
> Please find attached a patch implementing same.

Thanks.  Applied to HEAD.  I never liked putting scripts in git that
only I could run, but I thought if something happened to me, it would be
good to record what I did.  The Perl solution is perfect.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Transient plans versus the SPI API
Next
From: Gokulakannan Somasundaram
Date:
Subject: Re: the big picture for index-only scans