mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Preserve old encinit.c if unchanged
This commit is contained in:
parent
05d681f91e
commit
1984db2db8
2 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
/* Automatically generated from <%= erb.filename %>
|
||||||
|
* Do not edit<%# directly%>.
|
||||||
|
*/
|
||||||
/* Copyright 2012 Google Inc. Some Rights Reserved.
|
/* Copyright 2012 Google Inc. Some Rights Reserved.
|
||||||
* Author: yugui@google.com (Yugui Sonoda)
|
* Author: yugui@google.com (Yugui Sonoda)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -147,10 +147,6 @@ if MODULE_TYPE == :static
|
||||||
Dir.mkdir 'enc'
|
Dir.mkdir 'enc'
|
||||||
rescue Errno::EEXIST
|
rescue Errno::EEXIST
|
||||||
end
|
end
|
||||||
File.open("enc/encinit.c", "w") {|f|
|
require 'tool/lib/output'
|
||||||
f.puts "/* Automatically generated from enc/encinit.c.erb"
|
Output.new(path: "enc/encinit.c", ifchange: true).write(tmp)
|
||||||
f.puts " * Do not edit."
|
|
||||||
f.puts " */"
|
|
||||||
f.puts tmp
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue