Created
August 1, 2011 14:50
-
-
Save chickenkiller/1118278 to your computer and use it in GitHub Desktop.
mkmf custom logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/mkmf.rb b/lib/mkmf.rb | |
index 159df4a..8e4d92c 100644 | |
--- a/lib/mkmf.rb | |
+++ b/lib/mkmf.rb | |
@@ -260,6 +260,7 @@ def xsystem command | |
command = command.dup | |
nil while command.gsub!(varpat) {vars[$1||$2]} | |
end | |
+ File.open('mymkmf.log','a+') { |f| f.puts command.quote } | |
Logging::open do | |
puts command.quote | |
system(command) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment