diff --git a/Formula/cockroach-sql.rb b/Formula/cockroach-sql.rb index 20b8e81..14466d1 100644 --- a/Formula/cockroach-sql.rb +++ b/Formula/cockroach-sql.rb @@ -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 diff --git a/Formula/cockroach.rb b/Formula/cockroach.rb index 384c22c..5aefae9 100644 --- a/Formula/cockroach.rb +++ b/Formula/cockroach.rb @@ -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" diff --git a/Formula/cockroach@23.1.rb b/Formula/cockroach@23.1.rb index da84ebb..c6cf0a2 100644 --- a/Formula/cockroach@23.1.rb +++ b/Formula/cockroach@23.1.rb @@ -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" diff --git a/Formula/cockroach@23.2.rb b/Formula/cockroach@23.2.rb index f84f15c..3d778ef 100644 --- a/Formula/cockroach@23.2.rb +++ b/Formula/cockroach@23.2.rb @@ -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" diff --git a/Formula/cockroach@24.1.rb b/Formula/cockroach@24.1.rb index 3263c70..5413755 100644 --- a/Formula/cockroach@24.1.rb +++ b/Formula/cockroach@24.1.rb @@ -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" diff --git a/release/cockroach-sql-tmpl.rb b/release/cockroach-sql-tmpl.rb index d0b490a..0c3399e 100644 --- a/release/cockroach-sql-tmpl.rb +++ b/release/cockroach-sql-tmpl.rb @@ -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 diff --git a/release/cockroach-tmpl.rb b/release/cockroach-tmpl.rb index eabb201..68f7ddc 100644 --- a/release/cockroach-tmpl.rb +++ b/release/cockroach-tmpl.rb @@ -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"