aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/textify.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/textify.ps1 b/tools/textify.ps1
index c994b8aa75..814555ae6b 100755
--- a/tools/textify.ps1
+++ b/tools/textify.ps1
@@ -80,9 +80,9 @@ foreach ($src_file in Get-ChildItem $SourceFiles) {
$dst_file += ".txt"
}
- $src_modtime = (Get-ItemProperty -Path $src_file).LastWriteTime
+ $src_modtime = (Get-Item $src_file).LastWriteTime
- if (-not (Test-Path $dst_file) -or (Test-Path $dst_file -OlderThan $src_modtime)) {
+ if (-not (Test-Path $dst_file) -or ((Get-Item $dst_file).LastWriteTime -lt $src_modtime)) {
$contents = Get-Content $src_file
[System.IO.File]::WriteAllLines($dst_file, $contents, $no_bom_encoding)
Write-Host "Textified $src_file to $dst_file"