Skip to content
Snippets Groups Projects
Commit 6fbf1259 authored by Patrick Walton's avatar Patrick Walton Committed by Adam Vandenberg
Browse files

Create explicit folders for more language libs.

parent c51d74a2
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class Keg <Pathname
$n=0
$d=0
mkpaths=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal'
share_mkpaths=%w[aclocal doc info locale man]+(1..9).collect{|x|"man/man#{x}"}
# yeah indeed, you have to force anything you need in the main tree into
# these dirs REMEMBER that *NOT* everything needs to be in the main tree
......@@ -48,14 +48,20 @@ class Keg <Pathname
link_dir('bin') {:skip}
link_dir('sbin') {:link}
link_dir('include') {:link}
link_dir('share') {|path| :mkpath if mkpaths.include? path.to_s}
link_dir('share') {|path| :mkpath if share_mkpaths.include? path.to_s}
link_dir('lib') do |path|
case path.to_s
when /^pkgconfig/ then :mkpath
when /^php/ then :mkpath
# pkg-config database gets explicitly created
when 'pkgconfig' then :mkpath
# lib/language folders also get explicitly created
when 'ghc' then :mkpath
when 'lua' then :mkpath
when 'ocaml' then :mkpath
when /^perl5/ then :mkpath
when /^python2\.6/ then :mkpath
when 'php' then :mkpath
when /^python[23]\.\d$/ then :mkpath
else :link
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment