diff options
| author | Max Howell | 2009-05-21 17:50:57 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-21 17:50:57 +0100 |
| commit | 0b0fa48c313d77b6e4a1d7b472a998b75765437f (patch) | |
| tree | b1e33a24a712bc931b6957433e4bafdabe678000 | |
| parent | ef7dd6363d988013d326b6b38bae8c686e8b3119 (diff) | |
| download | brew-0b0fa48c313d77b6e4a1d7b472a998b75765437f.tar.bz2 | |
Rename h1 to ohai (for the lulz)
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 10 | ||||
| -rw-r--r-- | Formula/dmd.rb | 2 | ||||
| -rw-r--r-- | Formula/grc.rb | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index 057709073..118889205 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -12,7 +12,7 @@ ENV['CPPFLAGS']="-I#{$cellar.parent}/include" ENV['LDFLAGS']="-L#{$cellar.parent}/lib" -def h1 title +def ohai title puts "\033[0;34m==>\033[0;0;1m #{title} \033[0;0m" end @@ -53,7 +53,7 @@ class Formula prefix=$cellar+@name+@version raise "#{prefix} already exists!" if prefix.exist? - h1 "Preparing build" + ohai "Preparing build" appsupport = File.expand_path "~/Library/Application Support/Homebrew" FileUtils.mkpath appsupport unless File.exist? appsupport @@ -72,9 +72,9 @@ class Formula Dir.chdir uncompress(tgz) do caveats = yield prefix if caveats - h1 "Caveats" + ohai "Caveats" puts caveats - h1 "Summary" + ohai "Summary" end #TODO copy changelog or CHANGES file to pkg root, #TODO maybe README, etc. to versioned root @@ -136,7 +136,7 @@ def inreplace(path, before, after) end def system cmd - h1 cmd + ohai cmd out='' IO.popen("#{cmd} 2>1") do |f| diff --git a/Formula/dmd.rb b/Formula/dmd.rb index d390a9fa2..0b6bec2e3 100644 --- a/Formula/dmd.rb +++ b/Formula/dmd.rb @@ -6,7 +6,7 @@ url='http://ftp.digitalmars.com/dmd.1.043.zip' md5='6c83b7296cb84090a9ebc11ab0fb94a2' Formula.new(url, md5).brew do |prefix| - h1 "make" + ohai "make" prefix.mkpath FileUtils.cp_r 'osx/bin', prefix FileUtils.cp_r 'osx/lib', prefix diff --git a/Formula/grc.rb b/Formula/grc.rb index f122d3c4d..591b2e825 100644 --- a/Formula/grc.rb +++ b/Formula/grc.rb @@ -38,7 +38,7 @@ url='http://korpus.juls.savba.sk/~garabik/software/grc/grc_1.1.tar.gz' md5='eeb612aba2fff14cbaf1f3bec7e1eb60' Formula.new(url, md5).brew do |prefix| - h1 "make" + ohai "make" #TODO we should deprefixify since it's python and thus possible inreplace 'grc', '/etc', prefix+'/etc' inreplace 'grc.1', '/etc', prefix+'/etc' |
