Tom Lane
dfd0f2bbc5
Avoid re-writing files unnecessarily in src/tools/copyright.pl.
...
The existing coding resulted in touching every copyright-containing
file in the tree, even if it was already up to date. That doesn't
matter much for the annual run, but it's an annoyance if you try
to use the script for mop-up at the close of a devel cycle, as
I just did.
Discussion: https://postgr.es/m/266030.1649685473@sss.pgh.pa.us
2022-04-11 11:20:20 -04:00
Bruce Momjian
27b77ecf9f
Update copyright for 2022
...
Backpatch-through: 10
2022-01-07 19:04:57 -05:00
Bruce Momjian
ca3b37487b
Update copyright for 2021
...
Backpatch-through: 9.5
2021-01-02 13:06:25 -05:00
Peter Eisentraut
16a4a3d59c
Remove libpq.rc, use win32ver.rc for libpq
...
For historical reasons, libpq used a separate libpq.rc file for the
Windows builds while all other components use a common file
win32ver.rc. With a bit of tweaking, the libpq build can also use the
win32ver.rc file. This removes a bit of duplicative code.
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/ad505e61-a923-e114-9f38-9867d161073f@2ndquadrant.com
2020-01-15 15:06:12 +01:00
Bruce Momjian
7316f11be0
tools/copyright.pl: skip copyright changes for *.key files
...
Reported-by: Alvaro Herrera
Discussion: https://postgr.es/m/20200102184059.GA25435@alvherre.pgsql
Backpatch-through: master
2020-01-14 10:51:58 -05:00
Bruce Momjian
7559d8ebfa
Update copyrights for 2020
...
Backpatch-through: update all files in master, backpatch legal files through 9.4
2020-01-01 12:21:45 -05:00
Bruce Momjian
97c39498e5
Update copyright for 2019
...
Backpatch-through: certain files through 9.4
2019-01-02 12:44:25 -05:00
Andrew Dunstan
3a7cc727c7
Don't fall off the end of perl functions
...
This complies with the perlcritic policy
Subroutines::RequireFinalReturn, which is a severity 4 policy. Since we
only currently check at severity level 5, the policy is raised to that
level until we move to level 4 or lower, so that any new infringements
will be caught.
A small cosmetic piece of tidying of the pgperlcritic script is
included.
Mike Blackwell
Discussion: https://postgr.es/m/CAESHdJpfFm_9wQnQ3koY3c91FoRQsO-fh02za9R3OEMndOn84A@mail.gmail.com
2018-05-27 09:08:42 -04:00
Bruce Momjian
9d4649ca49
Update copyright for 2018
...
Backpatch-through: certain files through 9.3
2018-01-02 23:30:12 -05:00
Bruce Momjian
1d25779284
Update copyright via script for 2017
2017-01-03 13:48:53 -05:00
Noah Misch
3be0a62ffe
Finish pgindent run for 9.6: Perl files.
2016-06-12 04:19:56 -04:00
Tom Lane
de7c8dbea1
Make copyright.pl cope with nonstandard case choices in copyright notices.
...
The need for this is shown by the files it missed in Bruce's recent run.
I fixed it so that it will actually adjust the case when needed.
In passing, also make it skip .po files, since those will just get
overwritten anyway from the translation repository.
2016-01-02 14:45:21 -05:00
Bruce Momjian
ee94300446
Update copyright for 2016
...
Backpatch certain files through 9.1
2016-01-02 13:33:40 -05:00
Bruce Momjian
cb075178ec
Document that Perl's Tie might add a trailing newline
...
Report by Stefan Kaltenbrunner
2015-01-06 15:52:15 -05:00
Bruce Momjian
29c18d919e
Clarify which files need manual copyright updates
2015-01-06 12:53:15 -05:00
Bruce Momjian
338c10b7f9
Simplify post-copyright update instructions.
2015-01-06 11:45:17 -05:00
Bruce Momjian
4baaf863ec
Update copyright for 2015
...
Backpatch certain files through 9.0
2015-01-06 11:43:47 -05:00
Bruce Momjian
7e04792a1c
Update copyright for 2014
...
Update all files in head, and files COPYRIGHT and legal.sgml in all back
branches.
2014-01-07 16:05:30 -05:00
Peter Eisentraut
001e114b8d
Fix whitespace issues found by git diff --check, add gitattributes
...
Set per file type attributes in .gitattributes to fine-tune whitespace
checks. With the associated cleanups, the tree is now clean for git
2013-11-10 14:48:29 -05:00
Bruce Momjian
9af4159fce
pgindent run for release 9.3
...
This is the first run of the Perl-based pgindent script. Also update
pgindent instructions.
2013-05-29 16:58:43 -04:00
Bruce Momjian
bd61a623ac
Update copyrights for 2013
...
Fully update git head, and update back branches in ./COPYRIGHT and
legal.sgml files.
2013-01-01 17:15:01 -05:00
Bruce Momjian
d17c0135cd
Have copyright.pl skip updating something that is just the current year,
...
to avoid producing dups, e.g. 2012-2012
Backpatch to 9.2.
2012-07-06 12:21:43 -04:00
Bruce Momjian
95203e0833
Modify copyright.pl so all lines are processed, not just the first
...
match, so files that contain embedded copyrights are updated, e.g.
pgsql/help.c.
Backpatch to 9.2.
2012-07-06 11:58:55 -04:00
Bruce Momjian
5198ae8992
Fix copyright.pl to properly skip the .git directory by adding a
...
basename() qualification.
2012-07-06 11:43:59 -04:00
Bruce Momjian
b9eb808bf2
Fix spacing in copyright.pl after being run with missing regex slash
...
(now added).
Backpatch to 9.2.
2012-07-06 10:57:08 -04:00
Bruce Momjian
539d38757a
Fix missing regex slash that caused perltidy to get confused on
...
copyright.pl.
Backpatch to 9.2.
2012-07-04 21:58:48 -04:00
Bruce Momjian
042d9ffc28
Run newly-configured perltidy script on Perl files.
...
Run on HEAD and 9.2.
2012-07-04 21:47:49 -04:00
Bruce Momjian
b33385b89d
Have copyright tool mention that certain files should be updated in back branches.
2012-07-03 12:02:17 -04:00
Peter Eisentraut
c8e086795a
Remove whitespace from end of lines
...
pgindent and perltidy should clean up the rest.
2012-05-15 22:19:41 +03:00
Bruce Momjian
a8ab8d0eaa
Add comment about skipping binary files for copyright changes.
2012-01-02 08:49:11 -05:00
Bruce Momjian
6b6137e4ef
Update copyright git skip comment.
2012-01-01 22:27:27 -05:00
Bruce Momjian
bed762c81e
Skip any .git directory for copyright changes, not just top-level .git
...
directories. Per suggestion from Andrew Dunstan.
2012-01-01 19:47:24 -05:00
Bruce Momjian
f4cd747a4d
Skip 'ico' and 'bin' extensions in copyright changes.
2012-01-01 19:36:10 -05:00
Bruce Momjian
6ba139dc5a
Don't use tabs in Perl scripts, for consistency.
2012-01-01 17:59:44 -05:00
Bruce Momjian
9f60880207
Fix Perl copyright script to skip .git subdirectory; running it on
...
those files corrupts the index.
2012-01-01 17:56:51 -05:00
Bruce Momjian
ee639d2777
Fix copyright.pl to properly us 'tie' function.
...
Kris Jurka
2011-08-19 19:31:12 -04:00
Bruce Momjian
6dfcadafd3
Fix problem with regex in copyright test.
...
Report and fix by Kris Jurka
2011-08-19 17:45:10 -04:00
Bruce Momjian
272c289a46
Remove use of 'tie' in perl for copyright.pl; instead use normal file
...
open/close.
2011-08-19 17:43:32 -04:00
Bruce Momjian
da64fb93e5
Add executable bit to file.
2011-08-19 17:18:06 -04:00
Bruce Momjian
739e3f1050
Implement src/tools/copyright as a Perl program, so anyone can run it.
...
David Fetter
2011-08-19 13:51:19 -04:00