66 lines
4.2 KiB
PowerShell
66 lines
4.2 KiB
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = "c:\Users\fdavalos\OneDrive - up.edu.mx\microtracking\MicrotrackingFer"
|
|
|
|
Write-Output "=== [C1] TECTONIC_ROOT_DIR env: '$($env:TECTONIC_ROOT_DIR)' ==="
|
|
$cands = @("$env:LOCALAPPDATA\tectonic", "$env:APPDATA\tectonic", "$env:USERPROFILE\.cache\tectonic", "$root\tools\tectonic-cache", "$root\tectonic-cache", "$env:TEMP\tectonic")
|
|
foreach ($c in $cands) { if ($c -and (Test-Path $c)) { Write-Output "EXISTS: $c" } }
|
|
Write-Output '--- tectonic-like dirs under AppData (depth 1) ---'
|
|
@("$env:LOCALAPPDATA","$env:APPDATA") | ForEach-Object {
|
|
Get-ChildItem $_ -Directory -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'tectonic' } | Select-Object -ExpandProperty FullName
|
|
}
|
|
$cacheRoot = $cands | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
|
|
|
|
if ($cacheRoot) {
|
|
Write-Output "=== [C2] cache tree (depth 2, dirs only, first 60) root=$cacheRoot ==="
|
|
Get-ChildItem $cacheRoot -Recurse -Directory -Depth 2 -ErrorAction SilentlyContinue |
|
|
Select-Object -First 60 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}} |
|
|
Format-Table -AutoSize | Out-String -Width 150 | Write-Output
|
|
|
|
Write-Output '=== [C3] fontconfig confs in cache ==='
|
|
$confs = Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'fontconfig' }
|
|
$confs | Select-Object @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length | Format-Table -AutoSize | Out-String -Width 180 | Write-Output
|
|
|
|
Write-Output '=== [C4] lmmath / math otfs in cache ==='
|
|
Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'lmmath|math.*\.otf' } | Select-Object -First 10 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}} | Format-Table -AutoSize | Out-String -Width 180 | Write-Output
|
|
|
|
Write-Output '=== [C5] elsarticle / times / urw-palladio files in cache ==='
|
|
Get-ChildItem $cacheRoot -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match 'elsarticle|times\.sty|utimes|Palladio' } |
|
|
Select-Object -First 15 @{n='Rel';e={$_.FullName.Substring($cacheRoot.Length+1)}}, Length |
|
|
Format-Table -AutoSize | Out-String -Width 180 | Write-Output
|
|
|
|
Write-Output '=== [C6] opentype font dirs in cache (first 25) ==='
|
|
Get-ChildItem $cacheRoot -Recurse -Directory -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -eq 'opentype' } |
|
|
Select-Object -ExpandProperty FullName | Select-Object -First 25
|
|
} else {
|
|
Write-Output 'NO TECTONIC CACHE FOUND in standard locations'
|
|
}
|
|
|
|
Write-Output ''
|
|
Write-Output '=== [D1] all 72 local LM OTF names ==='
|
|
$otfDir = "$root\tools\fonts\lm\fonts\opentype\public\lm"
|
|
Get-ChildItem $otfDir -Filter *.otf -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Name | Sort-Object |
|
|
ForEach-Object { $_ } | Out-String -Width 100 | Write-Output
|
|
"any *math* among local OTFs: " + ((Get-ChildItem $root\tools\fonts -Recurse -File | Where-Object { $_.Name -match 'math' } | Measure-Object).Count)
|
|
|
|
Write-Output '=== [D2] Windows system Times / Arial fonts ==='
|
|
Get-ChildItem "$env:windir\Fonts" -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Name -match '^(Times|arial|ARIAL)' } |
|
|
Select-Object -First 30 Name, Length | Format-Table -AutoSize | Out-String -Width 120 | Write-Output
|
|
|
|
Write-Output '=== [E1] .gitattributes (why bundle/ is missing from tarball?) ==='
|
|
Get-Content (Join-Path $root 'tools\tectonic-src\.gitattributes') -ErrorAction SilentlyContinue
|
|
|
|
Write-Output ''
|
|
Write-Output '=== [E2] bundles/ tree (depth 2, first 60) ==='
|
|
$bn = Join-Path $root 'tools\tectonic-src\bundles'
|
|
Get-ChildItem $bn -Depth 2 -ErrorAction SilentlyContinue |
|
|
Select-Object -First 60 @{n='Rel';e={$_.FullName.Substring($bn.Length+1)}}, PSIsContainer, Length |
|
|
Format-Table -AutoSize | Out-String -Width 170 | Write-Output
|
|
|
|
Write-Output '=== [E3] archives/confs inside bundles/ ==='
|
|
Get-ChildItem $bn -Recurse -File -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.Extension -in '.zst','.tar','.gz','.conf' -or $_.Name -match 'fontconfig' } |
|
|
Select-Object -First 40 @{n='Rel';e={$_.FullName.Substring($bn.Length+1)}}, Length |
|
|
Format-Table -AutoSize | Out-String -Width 170 | Write-Output |