aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-31 08:19:34 -0700
committerAdam Vandenberg2014-05-31 08:19:34 -0700
commitdeccd57a707d569de2931255d6c0c0fc6a874dfd (patch)
treeb321049e5eccbabf19162a26c7910491cb6855c3 /Library/Formula
parent67d03d776108fa285bc5eb69dd48637141be0fdd (diff)
downloadhomebrew-deccd57a707d569de2931255d6c0c0fc6a874dfd.tar.bz2
nss: prefer mkpath
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nss.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Formula/nss.rb b/Library/Formula/nss.rb
index edff2c472..51851b233 100644
--- a/Library/Formula/nss.rb
+++ b/Library/Formula/nss.rb
@@ -1,4 +1,4 @@
-require 'formula'
+require "formula"
class Nss < Formula
homepage "https://developer.mozilla.org/docs/NSS"
@@ -37,18 +37,17 @@ class Nss < Formula
# hierarchy, and Homebrew's Pathname.install moves the symlink into the keg
# rather than copying the referenced file.
cd "../dist"
- bin.mkdir
+ bin.mkpath
Dir.glob("Darwin*/bin/*") do |file|
cp file, bin unless file.include? ".dylib"
end
- include.mkdir
include_target = include + "nss"
- include_target.mkdir
+ include_target.mkpath
Dir.glob("public/{dbm,nss}/*") { |file| cp file, include_target }
- lib.mkdir
- libexec.mkdir
+ lib.mkpath
+ libexec.mkpath
Dir.glob("Darwin*/lib/*") do |file|
cp file, lib unless file.include? ".chk"
cp file, libexec if file.include? ".chk"