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
commitdf1e55a62b7ecef91a145688d4af38cbace5ffc3 (patch)
tree30b24d414be8256185b51e9965b1e98201ee7c42 /Library
parent9614446e38ba487812929d33dda3eac8860bdc7a (diff)
downloadhomebrew-df1e55a62b7ecef91a145688d4af38cbace5ffc3.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