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

ripgrep 14.0.0 #155592

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions Formula/r/ripgrep.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Ripgrep < Formula
desc "Search tool like grep and The Silver Searcher"
homepage "https://github.com/BurntSushi/ripgrep"
url "https://github.com/BurntSushi/ripgrep/archive/refs/tags/13.0.0.tar.gz"
sha256 "0fb17aaf285b3eee8ddab17b833af1e190d73de317ff9648751ab0660d763ed2"
url "https://github.com/BurntSushi/ripgrep/archive/refs/tags/14.0.0.tar.gz"
sha256 "d4a57f558abe30bb272850d08850d412870fb3f942ed06932a30b4989911360b"
license "Unlicense"
head "https://github.com/BurntSushi/ripgrep.git", branch: "master"

Expand Down Expand Up @@ -33,13 +33,8 @@ class Ripgrep < Formula
def install
system "cargo", "install", "--features", "pcre2", *std_cargo_args

# Completion scripts and manpage are generated in the crate's build
# directory, which includes a fingerprint hash. Try to locate it first
out_dir = Dir["target/release/build/ripgrep-*/out"].first
man1.install "#{out_dir}/rg.1"
bash_completion.install "#{out_dir}/rg.bash"
fish_completion.install "#{out_dir}/rg.fish"
zsh_completion.install "complete/_rg"
generate_completions_from_executable(bin/"rg", "--generate", shell_parameter_format: "complete-")
(man1/"rg.1").write Utils.safe_popen_read(bin/"rg", "--generate", "man")
end

test do
Expand Down
Loading