Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t*: Fix Homebrew/NoFileutilsRmrf RuboCop offenses #178798

Merged
merged 10 commits into from
Jul 31, 2024
6 changes: 3 additions & 3 deletions Formula/t/texlive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ def install
end

# Clean unused files
rm_rf share/"texmf-dist/doc"
rm_rf share/"tlpkg/installer/wget"
rm_rf share/"tlpkg/installer/xz"
rm_r(share/"texmf-dist/doc")
rm_r(share/"tlpkg/installer/wget")
rm_r(share/"tlpkg/installer/xz")

# Set up config files to use the correct path for the TeXLive root
inreplace buildpath/"texk/kpathsea/texmf.cnf",
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/tin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Tin < Formula

def install
# Remove bundled libraries
%w[intl pcre].each { |l| (buildpath/l).rmtree }
%w[intl pcre].each { |l| rm_r(buildpath/l) }

system "./configure", *std_configure_args,
"--mandir=#{man}",
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/tomcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Tomcat < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TomcatAT7 < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TomcatAT8 < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TomcatAT9 < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_r(Dir["bin/*.bat"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
6 changes: 3 additions & 3 deletions Formula/t/tomee-plume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class TomeePlume < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_rf Dir["bin/*.bat.original"]
rm_rf Dir["bin/*.exe"]
rm_r(Dir["bin/*.bat"])
rm_r(Dir["bin/*.bat.original"])
rm_r(Dir["bin/*.exe"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
6 changes: 3 additions & 3 deletions Formula/t/tomee-plus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class TomeePlus < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_rf Dir["bin/*.bat.original"]
rm_rf Dir["bin/*.exe"]
rm_r(Dir["bin/*.bat"])
rm_r(Dir["bin/*.bat.original"])
rm_r(Dir["bin/*.exe"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
6 changes: 3 additions & 3 deletions Formula/t/tomee-webprofile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class TomeeWebprofile < Formula

def install
# Remove Windows scripts
rm_rf Dir["bin/*.bat"]
rm_rf Dir["bin/*.bat.original"]
rm_rf Dir["bin/*.exe"]
rm_r(Dir["bin/*.bat"])
rm_r(Dir["bin/*.bat.original"])
rm_r(Dir["bin/*.exe"])

# Install files
prefix.install %w[NOTICE LICENSE RELEASE-NOTES RUNNING.txt]
Expand Down
2 changes: 1 addition & 1 deletion Formula/t/travis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def install
system "gem", "build", "travis.gemspec"
system "gem", "install", "--ignore-dependencies", "travis-#{version}.gem"
bin.install libexec/"bin/travis"
(libexec/"gems/travis-#{version}/assets/notifications/Travis CI.app").rmtree
rm_r(libexec/"gems/travis-#{version}/assets/notifications/Travis CI.app")
bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
end

Expand Down
Loading