aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-01-30 22:48:44 -0800
committerAdam Vandenberg2010-01-30 22:48:44 -0800
commitfb8707df4e894e4828b6357d915326a98d81c534 (patch)
tree241693b325bf6130ae0bb98fc5b02a7d797a00fb /Library
parentf9a0f3e80f7b8885e6cc24124b6dd394c60c3a18 (diff)
downloadbrew-fb8707df4e894e4828b6357d915326a98d81c534.tar.bz2
Remove spaces around make-style variables.
Removing the spaces around equals for make-style variables makes the change_make_var! method compatible with shell scripts as well as makefiles.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 123d67937..a1a40e95f 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -182,7 +182,7 @@ module HomebrewInreplaceExtension
# value with "new_value", or removes the definition entirely.
# See inreplace in utils.rb
def change_make_var! flag, new_value
- new_value = "#{flag} = #{new_value}" unless new_value.to_s.empty?
+ new_value = "#{flag}=#{new_value}" unless new_value.to_s.empty?
gsub! Regexp.new("^#{flag}\\s*=.*$"), new_value.to_s
end
def remove_make_var! flags