Commit graph

27 commits

Author SHA1 Message Date
Baptiste Daroussin
14e0241210 Tools/scripts/bump_revision.pl: default on -l instead of -g
-g option means also bump portevision of indirect dependencies,
this is not required by default since at least FreeBSD 11 when we
stopped recursively copying DT_NEEDED
2023-05-11 14:55:24 +02:00
Matthias Andree
0b21baa862 Tools/scripts/bump_revision.pl: update 2023-03-04 11:41:16 +01:00
Matthias Andree
171f76521e Tools/scripts/bump_revision.pl: Minimal update
to deal with ports that have flavors renaming the main port,
for instance e2fsprogs-nobootfsck.
2022-01-17 23:19:14 +01:00
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
Matthias Andree
3fe84e82d4 bump_revision.pl: fix typo in help text. 2020-08-23 09:16:29 +00:00
Matthias Andree
243562ce09 bump_revision.pl: svn.freebsd.org -> repo.freebsd.org
and while here, fix a typo in the tmpdir's name.
2020-07-16 15:00:59 +00:00
Matthias Andree
6028208dff Tools/scripts/bump_revision.pl: Abort when invalid option given. 2020-05-08 01:18:16 +00:00
Matthias Andree
106ebbd24e Tools/scripts/bump_revision.pl: chase option rename for getopts(). 2020-05-08 01:10:16 +00:00
Matthias Andree
db9d6d4735 Tools/scripts/bump_revision.pl: rename options to avoid astonishment.
-n was more or less some "force" option, rename to -f
-c was a dry-run option that's often called -n, rename accordingly.
2020-05-08 01:09:15 +00:00
Matthias Andree
f94f54f0cd bump_revision.pl: minor usability improvements
- 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.
2020-04-19 00:36:04 +00:00
Matthias Andree
c11266721a Tools/scripts/bump_revision.pl: Fix a few issues
- 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.
2020-01-05 02:05:23 +00:00
Matthias Andree
58e5e2482e Tools/scripts/bump_revision.pl: Fix typo in comment 2020-01-05 01:35:58 +00:00
Matthias Andree
08c566cdbf Fix typos/grammar.
Thanks for the review, Mark.

Reported by:	linimon@
2019-07-12 16:40:14 +00:00
Matthias Andree
d89e773d86 Update bump_revision.pl.
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-12 16:07:44 +00:00
Gerald Pfeifer
2e782655b8 Transfer maintainership of this script to mandree@ based on conversations
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-07-12 12:20:34 +00:00
Emanuel Haupt
f361fdd649 Fix shebang. If /usr/bin/env is used the -w flag can't be passed after perl.
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-04-24 17:27:58 +00:00
Matthias Andree
1d10e55b18 Revert escaped un-approved commit.
This was not meant to be applied yet, as it is not yet completely developed.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192706
2016-04-12 06:31:59 +00:00
Matthias Andree
4b7fc05407 Drop maintainership.
If portmgr@ needs to commit against better advise, two years after this was
first discussed without any motion of the upstream.

Drop a few more maintainerships along the way.
2016-04-12 05:54:17 +00:00
Adam Weinberger
5e97d368a3 Invoke perl with /usr/bin/env, as perl is not guaranteed to exist in
/usr/bin.
2014-06-22 17:53:44 +00:00
Gerald Pfeifer
3b4262d630 Replace edwin's contact address with mine in the help, too. And
also solicit improvements. :-)
2014-04-18 23:37:53 +00:00
Gerald Pfeifer
0318479619 Only show the final instructions on how to do the actual commit when
doing the real job, not for a dry run.  Tweak those instructions a bit.

Assume maintainership.

Approved by:	edwin (maintainer)
2014-04-06 15:11:09 +00:00
Gerald Pfeifer
7108cdf6d5 Adjust a bit towards the new world of SVN in terms of directory
structure and output for the user.

Approved by:	maintainer (edwin)
2013-12-01 21:16:45 +00:00
Gerald Pfeifer
413c1b6ad3 Correctly bump PORTREVISION?= instead of always resetting to 1 in this case.
PR:		138774
Approved by:	edwin
2009-09-15 09:34:08 +00:00
Gerald Pfeifer
a351950aad Factor out the code that performs the PORTREVISION bump for one port.
Approved by:	edwin
2009-01-07 21:33:17 +00:00
Edwin Groothuis
de831ac6da [PATCH] Tools/scripts: Some cleanups, additions to bump_version.pl
- added -c, doesn't change anything
	- added -n, deal with an already checkouted tree
	- removed negative logic in favor of 'unless'
	- switch to 3 arg form of open()
	- don't use globs for filehandles, this is been obsolete
	  since at least 5.6.1
	- handle possible errors in close()
	- allow CVSROOT to be overriden in the ENV

PR:		ports/125025
Submitted by:	"Philip M. Gollucci" <pgollucci@p6m7g8.com>
2008-07-06 02:00:52 +00:00
Edwin Groothuis
4937bd57bd Add support for "PORTREVISION?=" and "PORTEPOCH"
Tested on: devel/gettext bump
2008-06-06 05:52:57 +00:00
Florent Thoumie
75dd621ca0 - Add bump_revision.pl, a small script to bump the PORTREVISION variable
of ports which are depending on a port with a changed shared lib version.

Edwin dedicates this script to his son Dirk, born few days ago :)
Congrats (again) !

PR:		ports/63915
Submitted by:	edwin
2005-04-12 09:22:59 +00:00