Flux git-text in-arbore: git_sync.ps1 + teste, txt2vcx in-place, filemap pjx/dbf
- git_sync.ps1 nou: conversie recursiva bin->text in arbore (staging temp, incremental, orfani, RoundtripExempt, DbfList cu date, anti-dialog cfg) - vfp_filemap.ps1: mapari .pjx->.pj2 si .dbf->.db2 - txt2vcx.ps1: CacheRoot implicit = ProjectRoot (text in-arbore) + cfg anti-dialog in staging - test_roundtrip.ps1: parametrizat per proiect, restaurare din backup temp (nu git checkout) - test_git_sync.ps1 nou: incremental, orfani, esec partial, protectie binar, scutire roundtrip - CLAUDE.md: fluxul nou documentat Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,9 @@
|
||||
Radacina proiectului tinta (implicit D:\ROA\ROAACNPRO, ca vcx2txt.ps1).
|
||||
|
||||
.PARAMETER CacheRoot
|
||||
Radacina cache-ului text (implicit D:\ROA\_vfp_textcache\roacnpro).
|
||||
Radacina versiunilor text. Implicit egala cu ProjectRoot (flux text in-arbore,
|
||||
langa binare): maparea cache->proiect devine identitate, iar refresh-ul textului
|
||||
e in-place. Da o radacina separata pentru fluxul vechi cu cache extern.
|
||||
|
||||
.PARAMETER AllowComun
|
||||
Obligatoriu pentru a scrie tinte aflate sub COMUN\ (repo partajat intre toate
|
||||
@@ -59,7 +61,7 @@
|
||||
param(
|
||||
[Parameter(Mandatory)][string[]]$TextFile,
|
||||
[string]$ProjectRoot = 'D:\ROA\ROAACNPRO',
|
||||
[string]$CacheRoot = 'D:\ROA\_vfp_textcache\roacnpro',
|
||||
[string]$CacheRoot = $ProjectRoot,
|
||||
[switch]$AllowComun,
|
||||
[switch]$Force,
|
||||
[switch]$NoVerify,
|
||||
@@ -217,6 +219,8 @@ foreach ($tf in $TextFile) {
|
||||
# --- 3. Regenerare in staging ---
|
||||
$stagingDir = Join-Path $stagingRoot $relBinNoExt
|
||||
New-Item -ItemType Directory -Force -Path $stagingDir | Out-Null
|
||||
# cfg in staging: DontShowErrors suprima MessageBox-ul propriu la write-back esuat (mostenit de verify/refresh)
|
||||
Set-Content -LiteralPath (Join-Path $stagingDir 'foxbin2prg.cfg') -Value @('DontShowErrors: 1','ShowProgressbar: 0') -Encoding Ascii
|
||||
$stagingText = Join-Path $stagingDir ($binBaseName + $textExt)
|
||||
Copy-Item -LiteralPath $fullTextPath -Destination $stagingText -Force
|
||||
|
||||
|
||||
Reference in New Issue
Block a user