From deccd57a707d569de2931255d6c0c0fc6a874dfd Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 31 May 2014 08:19:34 -0700 Subject: nss: prefer mkpath --- Library/Formula/nss.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3