Skip to content

Commit

Permalink
ripgrep 14.0.0
Browse files Browse the repository at this point in the history
ripgrep: update man and completions

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
sankalp-khare authored and chenrui333 committed Nov 26, 2023
1 parent 9b96c00 commit 0665af6
Showing 1 changed file with 4 additions and 9 deletions.
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

0 comments on commit 0665af6

Please sign in to comment.