aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-08 18:35:09 -0700
committerAdam Vandenberg2013-06-08 18:35:09 -0700
commit9ce35c2c1862a1f8c24ddc6ee6a9a54030248db3 (patch)
treebfc9c88f4b36ef62abd5056c1dcc5a87cf3322fe /Library/Formula
parente93c776803d6b8c2c96b971307899ad61f09a43c (diff)
downloadhomebrew-9ce35c2c1862a1f8c24ddc6ee6a9a54030248db3.tar.bz2
yaws: create default directories
These directories are expected to exist. Closes #13379.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yaws.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb
index 8c3de1e52..72e4e502c 100644
--- a/Library/Formula/yaws.rb
+++ b/Library/Formula/yaws.rb
@@ -10,6 +10,11 @@ class Yaws < Formula
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
if build.build_32_bit?
%w{ CFLAGS LDFLAGS }.each do |compiler_flag|
@@ -29,5 +34,10 @@ class Yaws < Formula
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