diff options
| author | SvenPStarFinanz <spa@starfinanz.de> | 2019-02-28 22:52:51 +0100 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-02-28 13:52:51 -0800 |
| commit | 7859944528be28bee1fda9f325b78d6a7f02124e (patch) | |
| tree | 8bfaba0d5fa89e9d254f4fec2dc7099384de456c /scripts | |
| parent | d236aa6f0a919b146bafd429865c9f77002f221f (diff) | |
| download | vcpkg-7859944528be28bee1fda9f325b78d6a7f02124e.tar.gz vcpkg-7859944528be28bee1fda9f325b78d6a7f02124e.zip | |
Overwriting dlls in the destination output directory when the source … (#4796)
* Overwriting dlls in the destination output directory when the source is newer.
* [vcpkg] cleanup whitespace
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/buildsystems/msbuild/applocal.ps1 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/buildsystems/msbuild/applocal.ps1 b/scripts/buildsystems/msbuild/applocal.ps1 index 42bad4bcd..cf363f12e 100644 --- a/scripts/buildsystems/msbuild/applocal.ps1 +++ b/scripts/buildsystems/msbuild/applocal.ps1 @@ -15,7 +15,14 @@ if ($copiedFilesLog) # Note: this function signature is depended upon by the qtdeploy.ps1 script introduced in 5.7.1-7 function deployBinary([string]$targetBinaryDir, [string]$SourceDir, [string]$targetBinaryName) { if (Test-Path "$targetBinaryDir\$targetBinaryName") { - Write-Verbose " ${targetBinaryName}: already present" + $sourceModTime = (Get-Item $SourceDir\$targetBinaryName).LastWriteTime + $destModTime = (Get-Item $targetBinaryDir\$targetBinaryName).LastWriteTime + if ($destModTime -lt $sourceModTime) { + Write-Verbose " ${targetBinaryName}: Updating $SourceDir\$targetBinaryName" + Copy-Item "$SourceDir\$targetBinaryName" $targetBinaryDir + } else { + Write-Verbose " ${targetBinaryName}: already present" + } } else { Write-Verbose " ${targetBinaryName}: Copying $SourceDir\$targetBinaryName" |
