Preserve old encinit.c if unchanged

This commit is contained in:
Nobuyoshi Nakada 2024-04-19 10:24:08 +09:00
Родитель 05d681f91e
Коммит 1984db2db8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3582D74E1FEE4465
2 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,6 @@
/* Automatically generated from <%= erb.filename %>
* Do not edit<%# directly%>.
*/
/* Copyright 2012 Google Inc. Some Rights Reserved.
* Author: yugui@google.com (Yugui Sonoda)
*/

Просмотреть файл

@ -147,10 +147,6 @@ if MODULE_TYPE == :static
Dir.mkdir 'enc'
rescue Errno::EEXIST
end
File.open("enc/encinit.c", "w") {|f|
f.puts "/* Automatically generated from enc/encinit.c.erb"
f.puts " * Do not edit."
f.puts " */"
f.puts tmp
}
require 'tool/lib/output'
Output.new(path: "enc/encinit.c", ifchange: true).write(tmp)
end