Skip to content

Commit

Permalink
[Bug #19892] Clean intermediate files regardless -keep_temp
Browse files Browse the repository at this point in the history
Not to include such files in the result packages.
  • Loading branch information
nobu committed Sep 21, 2023
1 parent 7ba88e1 commit 7c98d52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool/make-snapshot
Expand Up @@ -518,19 +518,19 @@ touch-unicode-files:
end
vcs.after_export(".") if exported
clean.concat(Dir.glob("ext/**/autom4te.cache"))
FileUtils.rm_rf(clean) unless $keep_temp
FileUtils.rm_rf(".downloaded-cache")
clean.add(".downloaded-cache")
if File.exist?("gems/bundled_gems")
gems = Dir.glob("gems/*.gem")
gems -= File.readlines("gems/bundled_gems").map {|line|
next if /^\s*(?:#|$)/ =~ line
name, version, _ = line.split(' ')
"gems/#{name}-#{version}.gem"
}
FileUtils.rm_f(gems)
clean.concat(gems)
else
FileUtils.rm_rf("gems")
clean.add("gems")
end
FileUtils.rm_rf(clean)
if modified
touch_all(modified, "**/*/", 0) do |name, stat|
stat.mtime > modified
Expand Down

0 comments on commit 7c98d52

Please sign in to comment.