summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-11-02 16:13:30 +0000
committerKarl Berry <karl@freefriends.org>2019-11-02 16:13:30 +0000
commita6533ee0e9b4a659454300277fc787a14d44afd6 (patch)
tree2e590b4064d105e2438ae99a172238411b2ea754 /Master
parentd4876a420b80abfea42358ba1446e57ebc359f85 (diff)
when removing a package, check for all word matches of package name in *.tlpsrc
git-svn-id: svn://tug.org/texlive/trunk@52615 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/tlpkg/bin/tlprm21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/tlpkg/bin/tlprm b/Master/tlpkg/bin/tlprm
index 4ff9155a251..750555de475 100755
--- a/Master/tlpkg/bin/tlprm
+++ b/Master/tlpkg/bin/tlprm
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
# $Id$
-# Copyright 2007-2016 Karl Berry.
+# Copyright 2007-2019 Karl Berry.
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
@@ -82,9 +82,13 @@ sub main {
print "if license in Catalogue is free, and package isn't, "
. "tell ctan\@dante.de\n";
- # remove dependencies from tlpsrc; show with line numbers for next-error.
+ # Remove dependencies from tlpsrc; show with line numbers for next-error.
+ # depend lines alone are not enough, as dependencies are also in
+ # fmttriggers attributes, set through variables. Better to show all
+ # possibilities with a word match (could also be done through a
+ # regexp) and accept some false positives.
my $tsrc = "$Master/tlpkg/tlpsrc";
- my @lines = `grep -n 'depend.* $f\$' $tsrc/*`;
+ my @lines = `grep -Hnw '$f' $tsrc/*`;
print "first edit collections:\n", @lines if @lines;
# but just file names for commit list.
@@ -146,12 +150,13 @@ L<TeXLive::TLUtils> for details.
B<tlprm> merely prints Subversion commands to remove TeX Live packages
from the source repository, e.g., when a package becomes obsolete or
-merged. It does not actually run any commands, remove anything, or
-change the TeX Live package database or anything else.
+merged. It does not execute any commands, remove anything, modify the
+TeX Live package database or actually do anything else.
-No dependency or other checking is done. It also does not remove the
-given package from any collection(s) where it is present, although it
-reports any collections and schemes that have dependencies on the package.
+It also reports any dependencies (collections, schemes, other packages)
+on the package, likely including some false positives. The person who
+runs it must exercise judgement in which dependencies to remove, update,
+etc.
=head1 AUTHORS AND COPYRIGHT