diff options
| author | Max Howell | 2009-06-05 13:44:00 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-05 13:44:00 +0100 |
| commit | 8b27aaa9896fbb1de8092ddd22fce4c1e6738f5f (patch) | |
| tree | d6c42fc827f8921f482702c65d473f190665b898 | |
| parent | 97eb5a8292270dac971dcae30037feed1e2fdcad (diff) | |
| download | brew-8b27aaa9896fbb1de8092ddd22fce4c1e6738f5f.tar.bz2 | |
Never cp .app bundles into FHS tree
| -rwxr-xr-x | bin/brew | 29 |
1 files changed, 10 insertions, 19 deletions
@@ -105,26 +105,13 @@ def ln name # NOTE that not everything needs to be in the main tree # TODO consider using hardlinks $n=0 - lnd(keg, 'etc') {nil} - lnd(keg, 'include') {nil} - - lnd(keg, 'lib') do |path| - :mkpath if ['pkgconfig','php'].include? path.to_s - end - - lnd(keg, 'bin') do |path| - if path.extname.to_s == '.app' - # no need to put .app bundles in the path, just use spotlight, or the - # open command - :skip - else - :mkpath - end - end - + lnd(keg, 'etc') {:mkdir} + lnd(keg, 'include') {:link} + lnd(keg, 'bin') {:link} + lnd(keg, 'lib') {|path| :mkpath if ['pkgconfig','php'].include? path.to_s} lnd(keg, 'share') do |path| - includes=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal' - :mkpath if includes.include? path.to_s + mkpaths=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal' + :mkpath if mkpaths.include? path.to_s end return $n @@ -153,6 +140,10 @@ def lnd keg, start to=$root+relative_path if from.directory? + # no need to put .app bundles in the path, the user can just use + # spotlight, or the open command and actual mac apps use an equivalent + Find.prune if path.extname.to_s == '.app' + cmd=yield from.relative_path_from(start) if :skip == cmd |
