aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-31 18:23:41 +0100
committerMax Howell2009-08-31 18:23:41 +0100
commit8379fbc076669a3f13d825b4945edf06c5b7f38d (patch)
treec2d322a28293cd700745a420392aa1540b88f248 /Library
parentd60fc4ba86d45255b0093303c45f6b1c2196fda2 (diff)
downloadhomebrew-8379fbc076669a3f13d825b4945edf06c5b7f38d.tar.bz2
docs is an alias for doc sometimes apparently
We don't install documentation to save space. It seems pointless in this modern age where the online docs are probably more up to date. However I do believe this should be an option, defaulting to "don't install".
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb6
-rw-r--r--Library/Homebrew/utils.rb8
2 files changed, 11 insertions, 3 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 0c3183f41..b5ca5ba09 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -236,11 +236,13 @@ class Cleaner
[f.bin, f.sbin, f.lib].each {|d| clean_dir d}
- # you can read all of this shit online nowadays, save the space
- # info pages are shit, everyone agrees apart from Richard Stallman
+ # you can read all of this stuff online nowadays, save the space
+ # info pages are pants, everyone agrees apart from Richard Stallman
+ # feel free to ask for build options though! http://bit.ly/Homebrew
(f.prefix+'share'+'doc').rmtree rescue nil
(f.prefix+'share'+'info').rmtree rescue nil
(f.prefix+'doc').rmtree rescue nil
+ (f.prefix+'docs').rmtree rescue nil
(f.prefix+'info').rmtree rescue nil
end
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 160eda881..2bd05e15d 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -49,7 +49,13 @@ end
def interactive_shell
pid=fork
- exec ENV['SHELL'] if pid.nil?
+ if pid.nil?
+ # TODO make the PS1 var change pls
+ #brown="\[\033[0;33m\]"
+ #reset="\[\033[0m\]"
+ #ENV['PS1']="Homebrew-#{HOMEBREW_VERSION} #{brown}\W#{reset}\$ "
+ exec ENV['SHELL']
+ end
Process.wait pid
raise SystemExit, "Aborting due to non-zero exit status" if $? != 0
end