Clean up windows cleanup script

* 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>
This commit is contained in:
Simon Hausmann
2017-05-09 09:46:31 +02:00
parent 038d263081
commit 35057fe4b2
6 changed files with 6 additions and 6 deletions

View File

@@ -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")

View File

@@ -1 +1 @@
. "$PSScriptRoot\..\common\01-windows_removethemall.ps1"
. "$PSScriptRoot\..\common\windows_removethemall.ps1"

View File

@@ -1 +1 @@
. "$PSScriptRoot\..\common\01-windows_removethemall.ps1"
. "$PSScriptRoot\..\common\windows_removethemall.ps1"

View File

@@ -1 +1 @@
. "$PSScriptRoot\..\common\01-windows_removethemall.ps1"
. "$PSScriptRoot\..\common\windows_removethemall.ps1"

View File

@@ -1 +1 @@
. "$PSScriptRoot\..\common\01-windows_removethemall.ps1"
. "$PSScriptRoot\..\common\windows_removethemall.ps1"

View File

@@ -1 +1 @@
. "$PSScriptRoot\..\common\01-windows_removethemall.ps1"
. "$PSScriptRoot\..\common\windows_removethemall.ps1"