Skip to content

Instantly share code, notes, and snippets.

@msr1k
Created May 10, 2018 10:06
Show Gist options
  • Save msr1k/45b985a7386a3a3a9ec8a7a10fbe55e7 to your computer and use it in GitHub Desktop.
Save msr1k/45b985a7386a3a3a9ec8a7a10fbe55e7 to your computer and use it in GitHub Desktop.
ruby script which deletes all Qt debug version DLLs recursively
dlls = Dir['**/*.dll']
dlls.each do |dll|
debug_version_dll_name = dll.sub(/^(.*)\.dll$/, '\1d.dll')
if dlls.include?(debug_version_dll_name)
puts "Delete #{debug_version_dll_name}"
File.delete(debug_version_dll_name)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment