Skip to content

Commit 1777d4f

Browse files
committed
windows lalala
1 parent acd2e68 commit 1777d4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

decoder_modules/ch_tetra_demodulator/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ if (NOT EXISTS "${ETSI_CODEC_MARKER}")
5252
)
5353
execute_process(
5454
COMMAND "${ETSI_POWERSHELL_PROGRAM}" -NoProfile -ExecutionPolicy Bypass -Command
55-
"$root='${ETSI_CODEC_DIR}'; Get-ChildItem -LiteralPath $root -Recurse -Directory | Sort-Object FullName -Descending | ForEach-Object { $parent=Split-Path -LiteralPath $_.FullName -Parent; $lowerName=$_.Name.ToLower(); if ($_.Name -cne $lowerName) { $tmpName=($lowerName + '.tmp_' + [guid]::NewGuid().ToString()); $tmpPath=Join-Path $parent $tmpName; $finalPath=Join-Path $parent $lowerName; Move-Item -LiteralPath $_.FullName -Destination $tmpPath -Force; Move-Item -LiteralPath $tmpPath -Destination $finalPath -Force } }"
55+
"$root='${ETSI_CODEC_DIR}'; Get-ChildItem -LiteralPath $root -Recurse -Directory | Sort-Object FullName -Descending | ForEach-Object { $parent=Split-Path -Path $_.FullName -Parent; $lowerName=$_.Name.ToLower(); if ($_.Name -cne $lowerName) { $tmpName=($lowerName + '.tmp_' + [guid]::NewGuid().ToString()); $tmpPath=Join-Path -Path $parent -ChildPath $tmpName; $finalPath=Join-Path -Path $parent -ChildPath $lowerName; Move-Item -LiteralPath $_.FullName -Destination $tmpPath -Force; Move-Item -LiteralPath $tmpPath -Destination $finalPath -Force } }"
5656
RESULT_VARIABLE ETSI_LOWER_RESULT
5757
)
5858
if (ETSI_LOWER_RESULT EQUAL 0)
5959
execute_process(
6060
COMMAND "${ETSI_POWERSHELL_PROGRAM}" -NoProfile -ExecutionPolicy Bypass -Command
61-
"$root='${ETSI_CODEC_DIR}'; Get-ChildItem -LiteralPath $root -Recurse -File | Sort-Object FullName -Descending | ForEach-Object { $parent=Split-Path -LiteralPath $_.FullName -Parent; $lowerName=$_.Name.ToLower(); if ($_.Name -cne $lowerName) { $tmpName=($lowerName + '.tmp_' + [guid]::NewGuid().ToString()); $tmpPath=Join-Path $parent $tmpName; $finalPath=Join-Path $parent $lowerName; Move-Item -LiteralPath $_.FullName -Destination $tmpPath -Force; Move-Item -LiteralPath $tmpPath -Destination $finalPath -Force } }"
61+
"$root='${ETSI_CODEC_DIR}'; Get-ChildItem -LiteralPath $root -Recurse -File | Sort-Object FullName -Descending | ForEach-Object { $parent=Split-Path -Path $_.FullName -Parent; $lowerName=$_.Name.ToLower(); if ($_.Name -cne $lowerName) { $tmpName=($lowerName + '.tmp_' + [guid]::NewGuid().ToString()); $tmpPath=Join-Path -Path $parent -ChildPath $tmpName; $finalPath=Join-Path -Path $parent -ChildPath $lowerName; Move-Item -LiteralPath $_.FullName -Destination $tmpPath -Force; Move-Item -LiteralPath $tmpPath -Destination $finalPath -Force } }"
6262
RESULT_VARIABLE ETSI_LOWER_RESULT
6363
)
6464
endif ()

0 commit comments

Comments
 (0)