Skip to content

Commit

Permalink
yugabytedb: Update the Formulae to include ysql_dump, `ysql_dumpall…
Browse files Browse the repository at this point in the history
…` and `ysql_bench` binaries to the brew installation (#100)
  • Loading branch information
gargsans-yb authored Sep 27, 2024
1 parent a7c4538 commit 6ce361d
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/yugabytedb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down
9 changes: 9 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down
9 changes: 9 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down
9 changes: 9 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down
9 changes: 9 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down
9 changes: 9 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@ def install
bin.install_symlink libexec/"bin/yugabyted"
ysqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ysqlsh"
ycqlsh_symlink = "#{HOMEBREW_PREFIX}/bin/ycqlsh"

ysql_dump_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dump"
ysql_dumpall_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_dumpall"
ysql_bench_symlink = "#{HOMEBREW_PREFIX}/bin/ysql_bench"

bin.install_symlink libexec/"postgres/bin/ysqlsh" unless File.exist?(ysqlsh_symlink)
bin.install_symlink libexec/"bin/ycqlsh" unless File.exist?(ycqlsh_symlink)

bin.install_symlink libexec/"postgres/bin/ysql_dump" unless File.exist?(ysql_dump_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_dumpall" unless File.exist?(ysql_dumpall_symlink)
bin.install_symlink libexec/"postgres/bin/ysql_bench" unless File.exist?(ysql_bench_symlink)
end

test do
Expand Down

0 comments on commit 6ce361d

Please sign in to comment.