script recognize submodules
This commit is contained in:
+827
-11632
File diff suppressed because it is too large
Load Diff
+8
-1
@@ -55,9 +55,16 @@ if not defined ps1 (
|
||||
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%"
|
||||
set "rc=%errorlevel%"
|
||||
|
||||
popd >nul 2>&1
|
||||
echo PowerShell exited with RC=%rc%
|
||||
echo Done.
|
||||
pause >nul
|
||||
|
||||
+8
-1
@@ -253,7 +253,14 @@ try {
|
||||
$_.Name -notmatch '^\d{4}-\d{2}-\d{2}$'
|
||||
}
|
||||
foreach ($seq in $directSeqs) {
|
||||
Add-SequenceFolder -Directory $seq -Map $sequenceMap
|
||||
$seqDirs = @(Get-ChildItem -LiteralPath $seq.FullName -Directory -ErrorAction SilentlyContinue | Where-Object { $_.Name -notlike '_*' })
|
||||
if ($seqDirs.Count -eq 0) {
|
||||
Add-SequenceFolder -Directory $seq -Map $sequenceMap
|
||||
} else {
|
||||
foreach ($s in $seqDirs) {
|
||||
Add-SequenceFolder -Directory $s -Map $sequenceMap
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$sequenceFolders = $sequenceMap.GetEnumerator() | ForEach-Object {
|
||||
|
||||
Reference in New Issue
Block a user