summaryrefslogtreecommitdiff
path: root/Tools
AgeCommit message (Collapse)Author
2019-07-12Fix typos/grammar.Matthias Andree
Thanks for the review, Mark. Reported by: linimon@
2019-07-12Update bump_revision.pl.Matthias Andree
Key features: - updated for SVN (the old version expected CVS) - shallow mode to only bump direct dependencies (option -l) PR: 192706 Submitted by: mandree@ (new maintainer)
2019-07-12Transfer maintainership of this script to mandree@ based on conversationsGerald Pfeifer
we've been having after I was planning to EOL it last year and a nice revamp of this script he has prepared. Thank you for taking this over, and good luck, Matthias! PR: 192706
2019-06-10Tools/script/addport: Fix usage with multiple directoriesLuca Pizzamiglio
PR: 238379 Submitted by: me Approved by: crees@
2019-05-18Do not search only in subfolder editors but in all.Matthias Fechner
I forgot to remove this before I commited it.
2019-03-28Added a script to bump PORTREVISION if a library has changed a version like ↵Matthias Fechner
libgit2. Just execute it in the root of you ports with e.g. Tools/scripts/search_lib_depends_and_bump.sh devel/libgit2 This will search over all existing ports, check if they need to be bumped. After all ports are bumped it triggers a portlint for each modified port. The portlint loop continues till all errors and warnings are fixed. Feel free to break this loop using CTRL+C.
2019-03-05rmport: fix and speed up the find_expired() function.Rene Ladan
find_expired() is used with -F (report on all expired ports using the format "date category/port: reason") and -a (remove all expired ports). Some speedups: - only calculate the deprecation reason for -F - use nested loops instead of nested recursion for traversing all ports. The nested recursion would also stop after finding the first port. Approved by: maintainer (crees) (implicit, fixit)
2019-02-26rmport: correctly deal with expired ports when the -a (find all expired) option.Rene Ladan
Instead of grepping port Makefiles for EXPIRATION_DATE, evaluate this variable using make. Also find ports by evaluating SUBDIR recursively instead of using find on Makefile\* Submitted by: crees (maintainer) Approved by: crees (maintainer)
2019-01-29Make Tools/scripts/patchtool.py compatible with Python 3.xTobias Kortkamp
PR: 233776 Submitted by: sobomax
2018-12-17Revert flavour support.Chris Rees
Submitted by: rene
2018-12-17Support flavor_EXPIRATION_DATEChris Rees
Correctly ignore commented dates (why would that exist?) Handle more neatly when EXPIRATION_DATE is not in the main Makefile
2018-12-03Return a bunch of tools formerly maintained by sobomax@ to the pool.Rene Ladan
2018-10-11rmport: if the user edited the commit message, ask again afterwards.Rene Ladan
This is in line with asking for recreating the diffs and "fixes" the workflow.
2018-09-16rmport: usability fixes:Rene Ladan
- only write the message to edit the log once - show the log itself instead of the temporary filename
2018-09-02Tools/scrips/rmport: improve usabilityRene Ladan
- if svn is not found, look for svnlite - improve workflow of removing ports Submitted by: blackend via email Approved by: maintainer (crees)
2018-08-20Use 'make -C' instead of saving the current working directory and thenGerald Pfeifer
restoring that in the new code to add a safety belt that came in via revision 477561. This is quite a bit simpler and shorter. Reported by: adamw PR: 226926
2018-08-19Add a stronger safety belt to this script by comparing the actualGerald Pfeifer
PORTREVISION (using the Ports Collection framework, not just looking at one Makefile individually at a time) before and after the bump. If the version after the bump isn't actually increased, flag that as an error. As an example, before revision r464215 (cf. bug #226533) this script would have wreaked wreak havoc on the multimedia/avidemux* ports. This hardly can be blamed on bump-revision.sh, but with the additional safety belt it does now detect such cases. How to reproduce: % cd $PORTSDIR % svn up -r 464036 multimedia/ % Tools/scripts/bump-revision.sh multimedia/avidemux* With this patch we print: INFO: multimedia/avidemux PORTREVISION= 9 found, bumping it by 1. INFO: multimedia/avidemux-cli PORTREVISION not found, adding PORTREVISION= 1 ERROR: multimedia/avidemux-cli PORTREVISION went backwards from 5 to 1! INFO: multimedia/avidemux-plugins PORTREVISION not found, adding PORTREVISION= 1 ERROR: multimedia/avidemux-plugins PORTREVISION went backwards from 5 to 1! INFO: multimedia/avidemux-qt4 PORTREVISION not found, adding PORTREVISION= 1 ERROR: multimedia/avidemux-qt4 PORTREVISION went backwards from 5 to 1! The beauty of this approach is that it goes beyond a simple text search, and leverages what the ports framework itself does. PR: 226926, 226533 Approved by: maintainer timeout (20+ weeks) Reviewed by: mandree, riggs
2018-08-04rmport: provide default for EDITOR varialble to preventEugene Grosbein
an error "svnlog: not found" when EDITOR is undefined. Reported by: Matthias Fechner <idefix@fechner.net> Approved by: portmgr (crees)
2018-07-02Also report the previous line when going backwards in time.Mathieu Arnold
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-06-14Remove an extra dot messing up copy and paste.Mathieu Arnold
Sponsored by: Absolight
2018-06-01Return Tools/scripts/portsvar.sh to the pool.Rene Ladan
2018-05-27Tools: add LEGALlintEitan Adler
This checks 'LEGAL' for common errors, It is inspired by MOVEDLint.
2018-05-21- Do not download obsolete attachmentsSofian Brabez
Submitted by: gonzo Approved by: myself Differential Revision: https://reviews.freebsd.org/D14550
2018-03-26Detect flavored dependencies in Tools/scripts/rmport and add myself to the ↵Rene Ladan
copyright.
2018-01-25Show errors for duplicate source entries.Bryan Drewery
2018-01-23Run Tools/scripts/mfh through devel/hs-ShellCheck.Mathieu Arnold
SC2068: Double quote array expansions to avoid re-splitting elements. SC2034: revs appears unused. Verify it or export it. SC2039: In POSIX sh, XXX is undefined. type -> command -v echo -n -> printf read -p -> printf + read SC2162: read without -r will mangle backslashes. SC2086: Double quote to prevent globbing and word splitting. Sponsored by: Absolight
2017-12-29Follow up on last commit and actually allow editingMathieu Arnold
the commit message again. PR: 224634 Reported by: yuri Sponsored by: Absolight
2017-11-30Generic FLAVORS work.Mathieu Arnold
- 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-10Commit the actual patch I testedMathieu Arnold
Sponsored by: Absolight
2017-11-10Cleanup resurrected processing.Mathieu Arnold
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-10Don't blame the person that removed a resurrected.Mathieu Arnold
Sponsored by: Absolight
2017-11-10Add braces around all if/else.Mathieu Arnold
Sponsored by: Absolight
2017-10-30Re-enable blame (was annotate) with svn and git support.Mathieu Arnold
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-30The final sort was missing from some places.Mathieu Arnold
Sponsored by: Absolight
2017-08-23Do not add $FreeBSD$ to the patch files.Mathieu Arnold
Sponsored by: Absolight
2017-08-07Fix resurrected ports not being warned about if they have a new dest entry.Bryan Drewery
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-06-12Allow editing commit message on failure and save it somewhere if declined.Bryan Drewery
With hat: portmgr
2017-05-04Fix some FreeBSD.org case of bad case.Mathieu Arnold
Sponsored by: Absolight
2017-05-01Add some usage instructions to the top of the mfh script. In particular,Adam Weinberger
note that multiple revisions should appear chronologically.
2017-04-30Update Tools/scripts/rmport to ignore commented out EXPIRATION_DATE linesLarry Rosenman
Reviewed by: crees (maintainer) Approved by: rene (portmgr, mentor), adamw (portmgr, mentor), crees (maintainer) Differential Revision: https://reviews.freebsd.org/D10548
2017-04-24Fix shebang. If /usr/bin/env is used the -w flag can't be passed after perl.Emanuel Haupt
Use 'use warnings;' instead. While here remove distinfochecker. It's not needed anymore as it was written for a simple purpose eleven years ago.
2017-03-29Reset pgollucci@ as maintainer after 19 months of inactivityRene Ladan
With hat: portmgr-secretary
2017-02-12Set maintainer of these scripts to portmgr as the previous maintainers retired.Rene Ladan
2017-02-05- Remove inclusion of bsd.default-versions.mk from ftp/curl/Makefile soTijl Coosemans
bsd.default-versions.mk can rely on ARCH being defined. - In bsd.port.mk move inclusion of bsd.default-versions.mk from the pre-makefile section to the options section so the variables can be used earlier. Also put the bit of code sitting between the options section and the pre-makefile section into the options section. - Remove last few cases where ports set WITH_OPENSSL_PORT. This variable is handled in bsd.default-versions.mk and some ports were setting it after including bsd.port.options.mk. After FreeBSD 9 EoL all but a few ports, and then only when setting non-default options, work without setting that variable. PR: 215996 Exp-run by: antoine Approved by: portmgr (antoine)
2017-01-03Make sure the merge is done on the latest branch.Mathieu Arnold
Also, make the branch argument optional. Discussed with: swills Sponsored by: Absolight
2016-09-08Use make(1) to extract variables from a Makefile, not grep.Mathieu Arnold
PR: 212486 Submitted by: mat Approved by: crees (maintainer) Sponsored by: Absolight
2016-08-17Fix the '-a' option to ${PORTSDIR}/Tools/scripts/addportMatthew Seaman
Summary: Currently addport -a ends up running a command line like: make PORTSDIR="/tmp/ap.BsOuZJBy" clean check-categories where the temporary directory has only parts of the ports tree (specifically bits under ${PORTSDIR}/Mk) checked out. This can't work as 'make check-categories' needs to see the entire ports tree checked out. Instead, run the checks specified by '-a' and '-t' with the value of $PORTSDIR from the environment. Reviewers: crees Reviewed By: crees Subscribers: mat Differential Revision: https://reviews.freebsd.org/D7525
2016-08-15Echo where the merge was done, so one can go and have a look.Mathieu Arnold
Sponsored by: Absolight
2016-08-03fixup last updates, and try to be better with slave ports.Mathieu Arnold
the case $? needs to have the exit status of the grep, not the awk line, so remove the awk line, it was not really helpful anyway. Also, with slave ports, most of the time, they don't have (PORT|DIST)VERSION, try to use CATEGORIES, PKGNAMEPREFIX or PKGNAMESUFFIX. PR: 211243 Submitted by: mat Approved by: maintainer timeout Sponsored by: Absolight
2016-07-17MFportsindexbuild:Antoine Brodin
- build INDEX-12 - remove no longer used scp/ssh