Skip to content

Commit 9961733

Browse files
committed
Added brew formula
1 parent c53ce1f commit 9961733

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

searchfs.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Searchfs < Formula
2+
desc "Fast filename search on HFS+ and APFS volumes using filesystem catalog search"
3+
homepage "https://github.com/sveinbjornt/searchfs"
4+
url "https://github.com/sveinbjornt/searchfs/archive/refs/tags/0.4.0.tar.gz"
5+
sha256 "9bb00135181ba684c9548541aca912632dbf9533f1f9db7ca95595701930b2d9"
6+
license "BSD-3-Clause"
7+
8+
depends_on :macos
9+
10+
def install
11+
system "make"
12+
bin.install "searchfs"
13+
man1.install "searchfs.1"
14+
end
15+
16+
test do
17+
# Test basic functionality
18+
system "#{bin}/searchfs", "--version"
19+
# Test list volumes
20+
system "#{bin}/searchfs", "--list"
21+
# Test search with limit (should complete quickly)
22+
system "#{bin}/searchfs", "-v", "/", "s", "-m", "5"
23+
end
24+
end

searchfs.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
F42B450E2EEF604100FCB379 /* CHANGES.md */ = {isa = PBXFileReference; lastKnownFileType = text; path = CHANGES.md; sourceTree = "<group>"; };
1818
F42B450F2EEF604900FCB379 /* TODO.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = TODO.md; sourceTree = "<group>"; };
1919
F42B45102EEF978500FCB379 /* benchmark.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = benchmark.sh; sourceTree = "<group>"; };
20+
F42B45132EF0B17B00FCB379 /* searchfs.rb */ = {isa = PBXFileReference; lastKnownFileType = text.script.ruby; path = searchfs.rb; sourceTree = "<group>"; };
2021
F442A0502284E05F0082840B /* searchfs.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = searchfs.png; sourceTree = "<group>"; };
2122
F46426FA246379FC00288C59 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
2223
F46A5ADC228CA5D00079B737 /* cat2html */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; path = cat2html; sourceTree = "<group>"; };
@@ -58,6 +59,7 @@
5859
F42B45102EEF978500FCB379 /* benchmark.sh */,
5960
F40FE9D42EEF4224000AA4FA /* man2html.sh */,
6061
F46A5ADC228CA5D00079B737 /* cat2html */,
62+
F42B45132EF0B17B00FCB379 /* searchfs.rb */,
6163
F46A5ADD228CA79C0079B737 /* test.py */,
6264
F46426FA246379FC00288C59 /* Foundation.framework */,
6365
F4D2B39720C32F8400CD7371 /* Products */,

0 commit comments

Comments
 (0)