Clean up windows cleanup script
authorSimon Hausmann <simon.hausmann@qt.io>
Tue, 9 May 2017 07:46:31 +0000 (09:46 +0200)
committerSimon Hausmann <simon.hausmann@qt.io>
Tue, 6 Jun 2017 20:15:40 +0000 (20:15 +0000)
* There's no need to have a numbered prefix in the common directory
* Instead of deleting directories trees worth several gigabytes of data,
  just rename the directory. The underlying storage system is
  copy-on-write and so deleting the files produces more data than just
  moving the directory out of the way. Deleting the files does not
  actually free up any physical disk space.

Change-Id: I6de02d56f3485651726ea11183ce7571d5b61520
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
coin/provisioning/common/windows_removethemall.ps1 [moved from coin/provisioning/common/01-windows_removethemall.ps1 with 97% similarity]
coin/provisioning/qtci-windows-10-x86/01-windows_removethemall.ps1
coin/provisioning/qtci-windows-10-x86_64/01-windows_removethemall.ps1
coin/provisioning/qtci-windows-7-x86/01-windows_removethemall.ps1
coin/provisioning/qtci-windows-8-x86/01-windows_removethemall.ps1
coin/provisioning/qtci-windows-8-x86_64/01-windows_removethemall.ps1

@@ -56,6 +56,6 @@ Function Remove-Path {
 }
 
 # Remove Android sdk and ndk
-Remove C:\utils\android*
+dir c:\utils\android* | ForEach { Rename-Item $_ $_"-deleted" }
 [Environment]::SetEnvironmentVariable("ANDROID_NDK_HOME",$null,"User")
 [Environment]::SetEnvironmentVariable("ANDROID_SDK_HOME",$null,"User")