script recognize submodules
This commit is contained in:
+737
-11542
File diff suppressed because it is too large
Load Diff
+8
-1
@@ -55,9 +55,16 @@ if not defined ps1 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
echo Running PowerShell update script...
|
REM Run from batch directory (sequences next to batch, or submodule root)
|
||||||
|
set "WORK_DIR=%script_dir%"
|
||||||
|
if "%WORK_DIR:~-1%"=="\" set "WORK_DIR=%WORK_DIR:~0,-1%"
|
||||||
|
pushd "%WORK_DIR%" >nul 2>&1
|
||||||
|
|
||||||
|
echo Running PowerShell update script in %WORK_DIR%...
|
||||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1%"
|
||||||
set "rc=%errorlevel%"
|
set "rc=%errorlevel%"
|
||||||
|
|
||||||
|
popd >nul 2>&1
|
||||||
echo PowerShell exited with RC=%rc%
|
echo PowerShell exited with RC=%rc%
|
||||||
echo Done.
|
echo Done.
|
||||||
pause >nul
|
pause >nul
|
||||||
|
|||||||
@@ -253,7 +253,14 @@ try {
|
|||||||
$_.Name -notmatch '^\d{4}-\d{2}-\d{2}$'
|
$_.Name -notmatch '^\d{4}-\d{2}-\d{2}$'
|
||||||
}
|
}
|
||||||
foreach ($seq in $directSeqs) {
|
foreach ($seq in $directSeqs) {
|
||||||
|
$seqDirs = @(Get-ChildItem -LiteralPath $seq.FullName -Directory -ErrorAction SilentlyContinue | Where-Object { $_.Name -notlike '_*' })
|
||||||
|
if ($seqDirs.Count -eq 0) {
|
||||||
Add-SequenceFolder -Directory $seq -Map $sequenceMap
|
Add-SequenceFolder -Directory $seq -Map $sequenceMap
|
||||||
|
} else {
|
||||||
|
foreach ($s in $seqDirs) {
|
||||||
|
Add-SequenceFolder -Directory $s -Map $sequenceMap
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sequenceFolders = $sequenceMap.GetEnumerator() | ForEach-Object {
|
$sequenceFolders = $sequenceMap.GetEnumerator() | ForEach-Object {
|
||||||
|
|||||||
Reference in New Issue
Block a user