aboutsummaryrefslogtreecommitdiff
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Tools/scripts/rmport: differentiate exit codes.Rene Ladan2021-04-211-5/+5
|
* tindex: Amend last commit a bit.Mathieu Arnold2021-04-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | When you run `git log foo` foo can be, from git-log(1), `[<revision range>] [[--] <path>...]`, so, may things. - A "revision range" described by gitrevision(7) (don't got there unless you have a few hours, or already lost your sanity), which can be : * a commit hash, * a tag * a branch, * a ref name * a "describe output" * and many other ways to describe revisions * a range made by any of the above - An existing path. When it can't find any of those, git figures out that you meant something else and made a typo, and exits. If you really meant a path, you have to run `git log -- foo`. Then git knows that you meant a path and only a path, it will then assume that you knew what you meant, and will go look in the history.
* tindex: fix when INDEX fails and ports are deleted since the last success.Rene Ladan2021-04-081-2/+4
| | | | | | | | | | | `git log' cannot get the log of a non-existent file, which the script uses to obtain the last person who touched a port, so check if the file exists before getting its log. This is similar to the Subversion case, which only inspected changed files. The Git version still also checks added ports. While here, call git in blame() using the predefined global variable. Reported by: antoine
* Cleanup executable bits, prompted by 9e1d7c39a1fa.Mathieu Arnold2021-04-081-0/+0
|
* rmport: ready for gitRene Ladan2021-04-061-4/+19
| | | | | | | | | - do not remove ports immediately but store them in a temporary file and remove them once the script has iterated over all ports to be removed. This prevents failed searches. The Subversion version used a temporary worktree so the main tree was unaffected. - remove a "merge" from a question, we use rebase now. - check if INDEX is readable and exit if not
* rmport: fix and simplify workflowRene Ladan2021-04-061-9/+3
| | | | | | | | | | | | - gather information about the deleted port for the commit message before removing the port. I somehow missed that when testing the script. - Instead of a temporary branch, just operate on the current branch and incorporate upstream changes with git pull --rebase. This prevents one from being stranded on a temporary branch if the script crashes and oblivates the need for a squash merge [1] Suggested by: mat [1]
* all: Remove all other $FreeBSD keywords.Mathieu Arnold2021-04-062-4/+0
|
* framework: Remove $FreeBSD$Mathieu Arnold2021-04-0626-46/+2
| | | | Where appropriate fiddle with a few other things.
* Tools/scripts/rmport: convert workflow to git.Rene Ladan2021-04-061-160/+86
| | | | | | | | | Do not push the final result automatically yet, unlike its previous Subversion version. Reviewed by: emaste, mat, uqs Approved by: crees (maintainer, implicit) Differential Revision: https://reviews.freebsd.org/D29451
* Tools/scripts/chkversion.pl: remove svn compatibilityRene Ladan2021-04-061-17/+0
| | | | Differential Revision: https://reviews.freebsd.org/D29451
* Tools/scripts/MOVEDlint.awk: remove svn compatibilityRene Ladan2021-04-061-5/+1
| | | | | Reviewed by: uqs Differential Revision: https://reviews.freebsd.org/D29451
* Tools/scripts/search_lib_depends_and_bump.sh: remove svn in an echoRene Ladan2021-04-061-1/+0
| | | | Differential Revision: https://reviews.freebsd.org/D29451
* Remove two tools that are no longer useful with Git.Rene Ladan2021-04-063-387/+0
| | | | | | | | | | - mfh: this is replaced by 'git cherry-pick -x HASH' - psvn: unlike svn, git has no per-file properties Adjust README accordingly. Differential Revision: https://reviews.freebsd.org/D29451 With hat: portmgr
* Tools/scripts/tindex: update for gitRene Ladan2021-04-061-13/+10
| | | | | Reviewed by: uqs Differential Revision: https://reviews.freebsd.org/D29451
* addport: Update contributor list file after Asciidoc conversionEd Maste2021-03-291-1/+1
| | | | | | | | | | Reviewed by: crees Approved by: crees Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29476 Notes: svn path=/head/; revision=569466
* You don't need approval to merge stuff.Mathieu Arnold2021-03-191-1/+0
| | | | Notes: svn path=/head/; revision=568802
* Tools/scripts/chkversion.pl: Git supportAdam Weinberger2021-01-271-14/+32
| | | | | | | | | Git support is enabled by setting BLAME=yes (the SVN-specific SVNBLAME=yes will be retired after transition). Mark all SVN blocks to facilitate that eventuality. Notes: svn path=/head/; revision=563026
* Tools/scripts/chkversion.pl: Fix and modernizeAdam Weinberger2021-01-261-102/+97
| | | | | | | | | | | | | | chkversion.pl was broken in a number of ways, including looking for CVS-style Id lines in svn headers, not being updated for pkgng, etc. This commit fixes those, and adopts some modern Perl practices. NOTE: The $PKG_VERSION env var is renamed to $PKG. This should be a no-op for most people (in the sense of it didn't work before, and the default should work for pretty much everybody). Notes: svn path=/head/; revision=562715
* Tools/scripts/chkversion.pl: Guard against undefined valuesAdam Weinberger2021-01-241-16/+17
| | | | | | | | | There are a few places where undefined values can creep in. While reinforcing defined values, use the defined-or (//) operator for some visual simplification. Notes: svn path=/head/; revision=562503
* Update tindex for FreeBSD 14Antoine Brodin2021-01-221-2/+6
| | | | Notes: svn path=/head/; revision=562285
* tindex: reduce diff with what is used on portsindexbuildAntoine Brodin2021-01-181-3/+4
| | | | | | | Use git to update src.13 Notes: svn path=/head/; revision=561907
* bump_revision.pl: fix typo in help text.Matthias Andree2020-08-231-1/+1
| | | | Notes: svn path=/head/; revision=545812
* Make argument parsing a bit more robustMateusz Piotrowski2020-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Currently, when running mfh with a flag like --help the user gets a confusing error message from expr(1) like the following: > expr: illegal option -- - > expr: usage: expr [-e] expression > > revision "--help" should be a number This is not helpful. Instead, make sure that any arguments specified by the user are handled properly by expr(1). This results in a much cleaner error message: > revision "--help" should be a number Reviewed by: mat Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D25958 Notes: svn path=/head/; revision=544225
* Move script to a more appropriate location.Mathieu Arnold2020-08-031-13/+0
| | | | Notes: svn path=/head/; revision=544070
* - Update wording/style on REINPLACE_CMD checksRyan Steinmetz2020-08-031-1/+1
| | | | Notes: svn path=/head/; revision=544069
* 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