mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
keg: mkpath while linking {include,lib,share}/postgresql@X
Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
parent
c3094acbaf
commit
babb352aef
@ -415,7 +415,14 @@ class Keg
|
|||||||
link_dir("etc", verbose:, dry_run:, overwrite:) { :mkpath }
|
link_dir("etc", verbose:, dry_run:, overwrite:) { :mkpath }
|
||||||
link_dir("bin", verbose:, dry_run:, overwrite:) { :skip_dir }
|
link_dir("bin", verbose:, dry_run:, overwrite:) { :skip_dir }
|
||||||
link_dir("sbin", verbose:, dry_run:, overwrite:) { :skip_dir }
|
link_dir("sbin", verbose:, dry_run:, overwrite:) { :skip_dir }
|
||||||
link_dir("include", verbose:, dry_run:, overwrite:) { :link }
|
link_dir("include", verbose:, dry_run:, overwrite:) do |relative_path|
|
||||||
|
case relative_path.to_s
|
||||||
|
when %r{^postgresql@\d+/}
|
||||||
|
:mkpath
|
||||||
|
else
|
||||||
|
:link
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
link_dir("share", verbose:, dry_run:, overwrite:) do |relative_path|
|
link_dir("share", verbose:, dry_run:, overwrite:) do |relative_path|
|
||||||
case relative_path.to_s
|
case relative_path.to_s
|
||||||
@ -429,6 +436,7 @@ class Keg
|
|||||||
/^fish/,
|
/^fish/,
|
||||||
%r{^lua/}, # Lua, Lua51, Lua53 all need the same handling.
|
%r{^lua/}, # Lua, Lua51, Lua53 all need the same handling.
|
||||||
%r{^guile/},
|
%r{^guile/},
|
||||||
|
%r{^postgresql@\d+/},
|
||||||
*SHARE_PATHS
|
*SHARE_PATHS
|
||||||
:mkpath
|
:mkpath
|
||||||
else
|
else
|
||||||
@ -452,6 +460,7 @@ class Keg
|
|||||||
/^ocaml/,
|
/^ocaml/,
|
||||||
/^perl5/,
|
/^perl5/,
|
||||||
"php",
|
"php",
|
||||||
|
%r{^postgresql@\d+/},
|
||||||
/^python[23]\.\d+/,
|
/^python[23]\.\d+/,
|
||||||
/^R/,
|
/^R/,
|
||||||
/^ruby/
|
/^ruby/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user