Created
May 10, 2018 10:06
-
-
Save msr1k/45b985a7386a3a3a9ec8a7a10fbe55e7 to your computer and use it in GitHub Desktop.
ruby script which deletes all Qt debug version DLLs recursively
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
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