aboutsummaryrefslogtreecommitdiff
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* bump_revision.pl: svn.freebsd.org -> repo.freebsd.orgMatthias Andree2020-07-161-2/+2
| | | | | | | and while here, fix a typo in the tmpdir's name. Notes: svn path=/head/; revision=542361
* Tools/scripts/patchtool: adjust for Python 3Rene Ladan2020-07-111-1/+6
| | | | | | | | | PR: 246414 Submitted by: ashish Event: July 2020 Bugathon Notes: svn path=/head/; revision=542048
* Tools/scripts/psvn: filter out svn status comments such as moved from/to.Matthias Andree2020-06-111-1/+1
| | | | | | | Avoids spurious but harmless warnings. Notes: svn path=/head/; revision=538520
* Tools/scripts/mfh: revert accidental tab expansionMatthias Andree2020-06-041-1/+1
| | | | | | | | | | Regression from r537876 Reported by: tijl@ Approved by: portmgr@ (implicit, whitespace-only edit to fix a regression) Notes: svn path=/head/; revision=537959
* Tools/scripts/mfh: check out entire port directory even if touching only files/Matthias Andree2020-06-041-25/+61
| | | | | | | | | | | | | | | - remove unused clean() function, trap does it - fix race around mktemp/setting up rm trap - rename filelist to dirlist so it matches its purpose - move defaults up front to the script - misc. minor edits PR: 246336 Approved by: portmgr (mat@) Differential Revision: https://reviews.freebsd.org/D24789 Notes: svn path=/head/; revision=537876
* Tools/scripts/bump_revision.pl: Abort when invalid option given.Matthias Andree2020-05-081-1/+1
| | | | Notes: svn path=/head/; revision=534316
* Tools/scripts/sed_checked.sh: Revert accidental unapproved commit.Matthias Andree2020-05-081-81/+10
| | | | Notes: svn path=/head/; revision=534315
* Tools/scripts/bump_revision.pl: chase option rename for getopts().Matthias Andree2020-05-082-11/+82
| | | | Notes: svn path=/head/; revision=534314
* Tools/scripts/bump_revision.pl: rename options to avoid astonishment.Matthias Andree2020-05-081-7/+7
| | | | | | | | -n was more or less some "force" option, rename to -f -c was a dry-run option that's often called -n, rename accordingly. Notes: svn path=/head/; revision=534313
* bump_revision.pl: minor usability improvementsMatthias Andree2020-04-191-7/+16
| | | | | | | | | | | - use env -S to split the shebang line (RhToad@#bsdports) - launder -p PORTSDIR argument and chdir to it so it doesn't matter which cwd bump_revision.pl is executed from - if INDEX not found, hint the user that also his -p option might be off, because the -i INDEX option defaults to a file relative to -p PORTSDIR. Notes: svn path=/head/; revision=532057
* Tools/scripts/sed_checked.sh: reword sed warningMatthias Andree2020-01-121-1/+1
| | | | | | | | | The original wording was misleading and might have mistaken for identical file names, but what is meant is that the sed run did not introduce changes to the file's __content__. Reword accordingly. Notes: svn path=/head/; revision=522779
* Add QA warning about useless REINPLACE_CMDSteve Wills2020-01-091-0/+13
| | | | | | | | | Reviewed by: mat, bdrewery, tobik Approved by: mat Differential Revision: https://reviews.freebsd.org/D22174 Notes: svn path=/head/; revision=522484
* Tools/scripts/bump_revision.pl: Fix a few issuesMatthias Andree2020-01-051-4/+6
| | | | | | | | | | - When using a non-default ports tree (-p PATH), strip that from the requisite origins, too. - Fix the counters when multiple ports are given on the command line, i. e. we are bumping depends if more requisites are updated at once. Notes: svn path=/head/; revision=522078
* Tools/scripts/bump_revision.pl: Fix typo in commentMatthias Andree2020-01-051-1/+1
| | | | Notes: svn path=/head/; revision=522077
* Update supported version of FreeBSDBaptiste Daroussin2019-09-131-16/+8
| | | | Notes: svn path=/head/; revision=511955
* Stop documenting scripts which no longer lives in the treeBaptiste Daroussin2019-09-051-17/+0
| | | | | | | | PR: 226606 Submitted by: Sergey Akhmatov <sergey@akhmatov.ru> Notes: svn path=/head/; revision=511191
* Fix typos/grammar.Matthias Andree2019-07-121-3/+3
| | | | | | | | | Thanks for the review, Mark. Reported by: linimon@ Notes: svn path=/head/; revision=506476
* Update bump_revision.pl.Matthias Andree2019-07-121-74/+147
| | | | | | | | | | | | 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) Notes: svn path=/head/; revision=506466
* Transfer maintainership of this script to mandree@ based on conversationsGerald Pfeifer2019-07-121-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=506455
* Tools/script/addport: Fix usage with multiple directoriesLuca Pizzamiglio2019-06-101-1/+3
| | | | | | | | | PR: 238379 Submitted by: me Approved by: crees@ Notes: svn path=/head/; revision=503896
* Do not search only in subfolder editors but in all.Matthias Fechner2019-05-181-1/+1
| | | | | | | I forgot to remove this before I commited it. Notes: svn path=/head/; revision=501947
* Added a script to bump PORTREVISION if a library has changed a version like ↵Matthias Fechner2019-03-282-0/+109
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=497031
* rmport: fix and speed up the find_expired() function.Rene Ladan2019-03-051-21/+15
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=494751
* rmport: correctly deal with expired ports when the -a (find all expired) option.Rene Ladan2019-02-261-9/+17
| | | | | | | | | | | | 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) Notes: svn path=/head/; revision=493983
* Make Tools/scripts/patchtool.py compatible with Python 3.xTobias Kortkamp2019-01-291-12/+18
| | | | | | | | PR: 233776 Submitted by: sobomax Notes: svn path=/head/; revision=491566
* Revert flavour support.Chris Rees2018-12-171-2/+2
| | | | | | | Submitted by: rene Notes: svn path=/head/; revision=487692
* Support flavor_EXPIRATION_DATEChris Rees2018-12-171-2/+3
| | | | | | | | | Correctly ignore commented dates (why would that exist?) Handle more neatly when EXPIRATION_DATE is not in the main Makefile Notes: svn path=/head/; revision=487690
* Return a bunch of tools formerly maintained by sobomax@ to the pool.Rene Ladan2018-12-035-7/+5
| | | | Notes: svn path=/head/; revision=486557
* rmport: if the user edited the commit message, ask again afterwards.Rene Ladan2018-10-111-4/+7
| | | | | | | This is in line with asking for recreating the diffs and "fixes" the workflow. Notes: svn path=/head/; revision=481824
* rmport: usability fixes:Rene Ladan2018-09-161-4/+2
| | | | | | | | - only write the message to edit the log once - show the log itself instead of the temporary filename Notes: svn path=/head/; revision=479882
* Tools/scrips/rmport: improve usabilityRene Ladan2018-09-021-10/+32
| | | | | | | | | | | - if svn is not found, look for svnlite - improve workflow of removing ports Submitted by: blackend via email Approved by: maintainer (crees) Notes: svn path=/head/; revision=478786
* Use 'make -C' instead of saving the current working directory and thenGerald Pfeifer2018-08-201-7/+2
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=477615
* Add a stronger safety belt to this script by comparing the actualGerald Pfeifer2018-08-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=477561
* rmport: provide default for EDITOR varialble to preventEugene Grosbein2018-08-041-0/+1
| | | | | | | | | | an error "svnlog: not found" when EDITOR is undefined. Reported by: Matthias Fechner <idefix@fechner.net> Approved by: portmgr (crees) Notes: svn path=/head/; revision=476368
* Also report the previous line when going backwards in time.Mathieu Arnold2018-07-021-1/+3
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=473752
* Remove an extra dot messing up copy and paste.Mathieu Arnold2018-06-141-1/+1
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=472385
* Return Tools/scripts/portsvar.sh to the pool.Rene Ladan2018-06-011-1/+1
| | | | Notes: svn path=/head/; revision=471290
* Tools: add LEGALlintEitan Adler2018-05-272-0/+23
| | | | | | | This checks 'LEGAL' for common errors, It is inspired by MOVEDLint. Notes: svn path=/head/; revision=470955
* - Do not download obsolete attachmentsSofian Brabez2018-05-211-2/+16
| | | | | | | | | Submitted by: gonzo Approved by: myself Differential Revision: https://reviews.freebsd.org/D14550 Notes: svn path=/head/; revision=470568
* Detect flavored dependencies in Tools/scripts/rmport and add myself to the ↵Rene Ladan2018-03-261-1/+2
| | | | | | | copyright. Notes: svn path=/head/; revision=465615
* Show errors for duplicate source entries.Bryan Drewery2018-01-251-0/+7
| | | | Notes: svn path=/head/; revision=459958
* Run Tools/scripts/mfh through devel/hs-ShellCheck.Mathieu Arnold2018-01-231-17/+17
| | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=459782
* Follow up on last commit and actually allow editingMathieu Arnold2017-12-291-0/+1
| | | | | | | | | | | the commit message again. PR: 224634 Reported by: yuri Sponsored by: Absolight Notes: svn path=/head/; revision=457506
* Generic FLAVORS work.Mathieu Arnold2017-11-301-1/+30
| | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=455205
* Commit the actual patch I testedMathieu Arnold2017-11-101-1/+1
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453896
* Cleanup resurrected processing.Mathieu Arnold2017-11-101-7/+1
| | | | | | | | | | 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 Notes: svn path=/head/; revision=453895
* Don't blame the person that removed a resurrected.Mathieu Arnold2017-11-101-1/+0
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453894
* Add braces around all if/else.Mathieu Arnold2017-11-101-2/+3
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453893
* Re-enable blame (was annotate) with svn and git support.Mathieu Arnold2017-10-301-2/+24
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=453175
* The final sort was missing from some places.Mathieu Arnold2017-10-301-2/+2
| | | | | | | Sponsored by: Absolight Notes: svn path=/head/; revision=453170