Chris Rees
0a32f395b7
Revert flavour support.
...
Submitted by: rene
2018-12-17 15:09:13 +00:00
Chris Rees
814b0cc185
Support flavor_EXPIRATION_DATE
...
Correctly ignore commented dates (why would that exist?)
Handle more neatly when EXPIRATION_DATE is not in the main Makefile
2018-12-17 14:54:56 +00:00
Rene Ladan
10ad00012a
rmport: if the user edited the commit message, ask again afterwards.
...
This is in line with asking for recreating the diffs and "fixes" the workflow.
2018-10-11 13:40:41 +00:00
Rene Ladan
88f198beed
rmport: usability fixes:
...
- only write the message to edit the log once
- show the log itself instead of the temporary filename
2018-09-16 09:20:37 +00:00
Rene Ladan
00c81ca48c
Tools/scrips/rmport: improve usability
...
- if svn is not found, look for svnlite
- improve workflow of removing ports
Submitted by: blackend via email
Approved by: maintainer (crees)
2018-09-02 11:30:20 +00:00
Eugene Grosbein
dfa53b2308
rmport: provide default for EDITOR varialble to prevent
...
an error "svnlog: not found" when EDITOR is undefined.
Reported by: Matthias Fechner <idefix@fechner.net>
Approved by: portmgr (crees)
2018-08-04 16:29:31 +00:00
Rene Ladan
affecc3c06
Detect flavored dependencies in Tools/scripts/rmport and add myself to the copyright.
2018-03-26 16:55:52 +00:00
Larry Rosenman
62de852b7f
Update Tools/scripts/rmport to ignore commented out EXPIRATION_DATE lines
...
Reviewed by: crees (maintainer)
Approved by: rene (portmgr, mentor), adamw (portmgr, mentor), crees (maintainer)
Differential Revision: https://reviews.freebsd.org/D10548
2017-04-30 17:45:31 +00:00
Rene Ladan
6544d8b819
Remove a stale comment in Tools/scripts/rmport
2016-05-17 17:53:11 +00:00
Rene Ladan
8e33c1e0fa
As a frequent user of the rmport script, it was time for some improvements:
...
- allow PORTSDIR to be a symbolic link when looking for expired ports or
dependent ports
- allow for trailing slashes when specifying ports as cat/name. This prevents
the port being a false positive for itself when the Makefile mentions the
port name (e.g., in PLIST_FILES)
- fetch possibly open PRs via Bugzilla, GNATS is long gone. Remove the
version that used freefall. Thanks to crees for pretty-printing the results.
- forcibly delete the temporary checkout to prevent rm(1) from asking for
confirmation on each file in .svn
- add myself as author
Approved by: maintainer (crees)
Differential Revision: https://reviews.freebsd.org/D6396
2016-05-17 17:51:59 +00:00
Christian Weisgerber
4399edafd2
Default to repo.FreeBSD.org for commits, as urged by our repo meister.
...
Approved by: crees
2015-09-15 15:31:54 +00:00
Chris Rees
d34d662a29
Fix cdiff
...
Reported by: swills
2014-03-24 20:30:00 +00:00
Baptiste Daroussin
a24b31bac2
Make check_deps behave the same as check_PRs:
...
propose to skip removing a port if anything depends on it, instead of infinite looping on "ignore the issue"
2013-03-09 23:49:02 +00:00
Eitan Adler
3152b4bd9f
Make the removal diff nicer to read by not showing the line-by-line removal and instead replace it with "FILE has been deleted"
...
Reviewed by: crees
2012-09-23 17:56:10 +00:00
Beat Gaetzi
6228337952
- Update addport and rmport to work with Subversion
...
Submitted by: crees, miwi
2012-07-15 20:57:22 +00:00
Chris Rees
dd16d151db
Take maintainership-- thanks to vd for his past work on this script
...
Approved by: vd (maintainer)
- Make the diff output work
- Use cdiff if exists, otherwise stick with $EDITOR
- Stop trying to remove CVSROOT; hasn't been checked out since modules
support was removed by erwin
2012-05-02 18:32:30 +00:00
Greg Larkin
e49ea39cc3
- Fixed "permission denied" error
...
- Prevented full ports tree build when operating with ~/.cvsrc
PR: ports/139121
2009-10-06 00:48:13 +00:00
Erwin Lansing
e4bbe0c85e
CVSROOT/modules no longer contains an entry per port, remove support
...
for this from these scripts.
2008-06-19 22:09:01 +00:00
Vasil Dimov
101df1b468
Use echo instead of printf because external commands cannot be executed
...
with very long arguments (>400000 characters).
The problem reveals for example if
/usr/ports/Tools/scripts/rmport -d print/ghostscript-gnu
is executed - it does
printf "%s\n" "... 451109 chars ..."
Spotted by: rafan
2007-03-28 20:39:18 +00:00
Vasil Dimov
eed3828ab1
* Run cvs update just before cvs commit to sync a potentially changed files
...
in the repository. Suggested by: gabor@
* Fix typo in the output
2007-02-19 07:24:36 +00:00
Vasil Dimov
92615ddfc4
A bunch of cosmetic changes - add one empty line to make the output more
...
readable and use double quotes everywhere.
2007-01-26 14:25:39 +00:00
Vasil Dimov
a62c886fca
Make output messages more useful
2007-01-26 10:19:23 +00:00
Vasil Dimov
0d451e0598
* Make it possible to skip existing dependencies and ports references in LEGAL
...
and continue with removal anyway. Requested by miwi@
* Pipe dependencies information (if any) through a PAGER because INDEX lines
are very long and hard to read when wrapped
2007-01-19 15:49:49 +00:00
Vasil Dimov
59a026b0f1
Query Gnats for PRs by using the query-pr command on freefall instead of the
...
web-interface becase the later is not reliable.
2006-12-20 13:18:25 +00:00
Vasil Dimov
e2f1d375a7
Add check for existing non-closed PRs related to the port being removed.
...
If any are found then ask if the port should be skipped from removal or
removed regardless of the PRs.
2006-12-13 07:32:58 +00:00
Vasil Dimov
9125407be5
Add deprecated reason to the output of -F
2006-11-02 09:20:10 +00:00
Vasil Dimov
e1bcb99398
* Create custom commit message template and populate it with the ports
...
to be removed, possibly with the expiration date and deprecated reason
* If port is not marked for expiration than put "Removed" in ports/MOVED
entry instead of "Has expired"
* Implement -a option to remove all expired ports
* Ask if the cvs diff output should be recreated/reviewed again thus
giving the committer a chance to edit files by hand and view diff
results afterwards
* Cosmetic changes
2006-11-01 09:57:36 +00:00
Vasil Dimov
1854c2ed1d
When checking for dependencies of foocategory/barport also find constructs
...
like .../barport/something e.g. expect either space, slash or eol after
port's name
2006-10-05 10:40:29 +00:00
Vasil Dimov
800d19da74
When checking dependencies also look for portname references in Mk/*.mk
...
in addition to */*/Makefile* and ignore references in comments
2006-09-14 09:13:39 +00:00
Vasil Dimov
f5a601c10a
Remove grep's -w switch from the dependency check since it misses some
...
dependencies. This needs some more polishing but for now it is better to
emit false positives than skip dependencies.
2006-09-12 08:35:16 +00:00
Vasil Dimov
ed290037f5
Escape characters (like +) that may appear in ports' names and
...
break sed -E regular expressions
2006-07-05 08:31:49 +00:00
Vasil Dimov
12dda3240e
Add support for specifying ports to be removed as directories on the
...
filesystem (either absolute or relative) in addition to `category/port'.
PR: ports/96649
Submitted by: Cheng-Lung Sung <clsung@freebsd.org>
Reworked by: vd
2006-05-02 11:31:54 +00:00
Vasil Dimov
8529c41f37
Improve dependency check:
...
When removing category/port - look if other ports' Makefiles contain
`/port' rather than `category/port', since the later misses things
like `${.CURDIR}/../port'
2006-05-02 09:16:10 +00:00
Vasil Dimov
b2a9550574
Add support for removing multiple ports which depend on each other
2006-04-17 08:08:37 +00:00
Vasil Dimov
dffa807775
Quote ${1} so we don't get ``[: =: unexpected operator'' if the script
...
is started without arguments.
2006-04-12 05:23:04 +00:00
Vasil Dimov
ffc261a29e
Add the script I use to remove ports so everyone
...
can benefit (or suffer :-) from it.
2006-04-10 05:54:50 +00:00