|
@ -28,10 +28,10 @@ require 'hbc' |
|
|
|
|
|
|
|
|
# pretend like we installed the cask tap |
|
|
# pretend like we installed the cask tap |
|
|
project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../")) |
|
|
project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../")) |
|
|
taps_dest = HOMEBREW_LIBRARY.join('Taps/caskroom') |
|
|
taps_dest = Hbc.homebrew_prefix.join(*%w{Library Taps caskroom}) |
|
|
|
|
|
|
|
|
# create directories |
|
|
# create directories |
|
|
FileUtils.mkdir_p taps_dest |
|
|
FileUtils.mkdir_p taps_dest |
|
|
HOMEBREW_PREFIX.join('bin').mkdir |
|
|
FileUtils.mkdir_p Hbc.homebrew_prefix.join('bin') |
|
|
|
|
|
|
|
|
FileUtils.ln_s project_root, taps_dest.join('homebrew-cask') |
|
|
FileUtils.ln_s project_root, taps_dest.join('homebrew-cask') |
|
|