Commit graph

24 commits

Author SHA1 Message Date
Baptiste Daroussin
97d54c0413 MOVEDlint: ignore make.conf
Ignoring make.conf when looking up for existing flavors, makes the
test less likely to be polluted by end user defaults, like default
version of python etc.
2022-08-24 09:14:22 +02:00
Baptiste Daroussin
fb4e70bad0 MOVEDlint: Test the first and second field for spaces
both fields should not have spaces in their field, let's make
MOVEDlint check for it
2022-08-23 15:16:19 +02:00
Baptiste Daroussin
abe88637f5 MOVEDlint: exit 1 in case of error 2022-08-23 14:55:06 +02:00
Baptiste Daroussin
85397ca391 MOVEDlint: accept -v blame=1 from command line 2022-08-23 14:49:19 +02:00
Baptiste Daroussin
d1349053a7 MOVEDlint: check for flavored version of a port
There is no need to document when a port has been flavored or new
flavor has been added, check if someone added such a line, and prevent
the person it is not needed
2022-08-23 14:16:46 +02:00
Baptiste Daroussin
d2aa049c86 MOVEDlint.awk: add the ability to select a start date
Reviewed by:	tcberner
Differential Revision:	https://reviews.freebsd.org/D36304
2022-08-23 14:07:36 +02:00
Rene Ladan
ba2871e5f5 Tools/scripts/MOVEDlint.awk: remove svn compatibility
Reviewed by:	uqs
Differential Revision:	https://reviews.freebsd.org/D29451
2021-04-06 12:39:46 +02:00
Mathieu Arnold
5b4fcd0676 Also report the previous line when going backwards in time.
This is because half of the time, the previous line is the one that is
wrong, so you get redirected to line X, where X-1 has the error, and you
wonder because line X looks just fine.

Sponsored by:	Absolight
2018-07-02 16:19:50 +00:00
Bryan Drewery
d7b83ead05 Show errors for duplicate source entries. 2018-01-25 20:56:18 +00:00
Mathieu Arnold
30c4ca5784 Generic FLAVORS work.
- Enable FLAVORS.
- Make make describe flavors aware.
- Add a qa check for unique package names amongst flavors.
- Make MOVEDlint understand flavors.
- Add a bit of sanity check to make sure FLAVORS stay lowercase.
- Various fixes.

Reviewed by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12577
2017-11-30 15:33:29 +00:00
Mathieu Arnold
c77bdeb9c9 Commit the actual patch I tested
Sponsored by:	Absolight
2017-11-10 12:01:33 +00:00
Mathieu Arnold
4bcdfb8685 Cleanup resurrected processing.
There is no need to have a resurrected array, it is only used once, so
move the resurrected printf where it belongs.

Sponsored by:	Absolight
2017-11-10 11:59:28 +00:00
Mathieu Arnold
0f100e6d8d Don't blame the person that removed a resurrected.
Sponsored by:	Absolight
2017-11-10 11:59:25 +00:00
Mathieu Arnold
6dbe1c10eb Add braces around all if/else.
Sponsored by:	Absolight
2017-11-10 11:59:17 +00:00
Mathieu Arnold
48fc012063 Re-enable blame (was annotate) with svn and git support.
ak@ asked that I remove the unused error array, and I went to have a
look at what it was actually used for back in the day.  It seemed better
to re-enable the blame feature instead of removing it.

Sponsored by:	Absolight
2017-10-30 13:56:49 +00:00
Mathieu Arnold
47ceacdd9d The final sort was missing from some places.
Sponsored by:	Absolight
2017-10-30 11:23:17 +00:00
Bryan Drewery
51eb8c5226 Fix resurrected ports not being warned about if they have a new dest entry.
This now warns about these 2 ports as needing to be marked as resurrected:

    archivers/brotli|archivers/py-brotli|2016-11-24|Brotli is a python module
    devel/libbrotli|archivers/brotli|2017-07-12|meta project no longer required to build libs

    www/rubygem-jquery-rails||2017-01-07|Has expired: Depends on deprecated www/rubygem-railties
    www/rubygem-jquery-rails4|www/rubygem-jquery-rails|2017-03-27|Remove PKGNAMESUFFIX
2017-08-07 17:32:31 +00:00
Alex Kozlov
76d714945f - Remove vestiges of cvs annotate support 2014-12-07 17:51:12 +00:00
Eitan Adler
d868ed7aea Make MOVEDLint output more consistent 2014-01-24 15:44:54 +00:00
Eitan Adler
e61f04a29c Add MOVEDLint checks for some of the other formatting problems
seen in MOVED lines.

Feature safe:	yes
2012-10-15 21:34:19 +00:00
Eitan Adler
3770374e75 Remove support for CVS from MOVEDLint
Approved by:	portmgr (beat)
2012-07-15 23:16:13 +00:00
Kirill Ponomarev
043f5658ce Remove traling spaces. 2005-01-09 10:21:17 +00:00
Oliver Eikemeier
fbb1a3869a - don't flag empty lines
- callable without arguments:
  /usr/ports/Tools/scripts/MOVEDlint.awk
- do CVS annotate when called with env CVS=yes
2004-05-08 11:52:36 +00:00
Oliver Eikemeier
3b5d63ae7b awk script to check MOVED for consistency
Usage:
  [env PORTSDIR=/usr/ports] awk -f MOVEDlint.awk /usr/ports/MOVED
2004-05-08 02:46:29 +00:00