yaws: create default directories

These directories are expected to exist.

Closes Homebrew/homebrew#13379.
This commit is contained in:
Adam Vandenberg 2013-06-08 18:35:09 -07:00
parent e910e54194
commit 7e631f9ab7

View file

@ -10,6 +10,11 @@ class Yaws < Formula
depends_on 'erlang' depends_on 'erlang'
# the default config expects these folders to exist
skip_clean 'var/log/yaws'
skip_clean 'lib/yaws/examples/ebin'
skip_clean 'lib/yaws/examples/include'
def install def install
if build.build_32_bit? if build.build_32_bit?
%w{ CFLAGS LDFLAGS }.each do |compiler_flag| %w{ CFLAGS LDFLAGS }.each do |compiler_flag|
@ -29,5 +34,10 @@ class Yaws < Formula
end end
end end
end end
# the default config expects these folders to exist
(var/'log/yaws').mkpath
(lib/'yaws/examples/ebin').mkpath
(lib/'yaws/examples/include').mkpath
end end
end end