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

Install licenses depending conditionally #237

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion Formula/cockroach-sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CockroachSql < Formula

def install
bin.install "cockroach-sql"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
end

test do
Expand Down
4 changes: 3 additions & 1 deletion Formula/cockroach.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Cockroach < Formula

def install
bin.install "cockroach"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
on_intel do
lib.mkpath
mkdir "#{lib}/cockroach"
Expand Down
4 changes: 3 additions & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CockroachAT231 < Formula

def install
bin.install "cockroach"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
on_intel do
lib.mkpath
mkdir "#{lib}/cockroach"
Expand Down
4 changes: 3 additions & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CockroachAT232 < Formula

def install
bin.install "cockroach"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
on_intel do
lib.mkpath
mkdir "#{lib}/cockroach"
Expand Down
4 changes: 3 additions & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CockroachAT241 < Formula

def install
bin.install "cockroach"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
on_intel do
lib.mkpath
mkdir "#{lib}/cockroach"
Expand Down
4 changes: 3 additions & 1 deletion release/cockroach-sql-tmpl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CockroachSql < Formula

def install
bin.install "cockroach-sql"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
end

test do
Expand Down
4 changes: 3 additions & 1 deletion release/cockroach-tmpl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Cockroach{{ .ClassSuffix }} < Formula

def install
bin.install "cockroach"
prefix.install "LICENSE.txt", "THIRD-PARTY-NOTICES.txt"
prefix.install "LICENSE" if File.exist?("LICENSE")
prefix.install "LICENSE.txt" if File.exist?("LICENSE.txt")
prefix.install "THIRD-PARTY-NOTICES.txt"
on_intel do
lib.mkpath
mkdir "#{lib}/cockroach"
Expand Down
Loading