From fb8707df4e894e4828b6357d915326a98d81c534 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 30 Jan 2010 22:48:44 -0800 Subject: [PATCH] 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. --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 123d67937e..a1a40e95f9 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