File tree Expand file tree Collapse file tree
decoder_modules/ch_tetra_demodulator Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments