|
9 | 9 | Behavior: |
10 | 10 | - Expects a manifest.acl file at the top of <src_dir>. |
11 | 11 | - Produces <out_root>/<name>/<ver>/<name>-<ver>.pkg |
12 | | -- ALWAYS uses build/arch. If build/arch is missing, attempts to compile src/arch.c -> build/arch. |
| 12 | +- ALWAYS uses build/arch. If build/arch is missing, attempts to compile src/core/arch.c -> build/arch. |
13 | 13 | - If compilation or arch invocation fails, the script exits with non-zero (no tar fallback). |
14 | 14 | - Computes SHA256 and updates (or inserts) archive_sha256 in manifest.acl. |
15 | 15 | """ |
@@ -75,17 +75,17 @@ def ensure_parent(path: Path) -> None: |
75 | 75 |
|
76 | 76 | def arch_executable() -> Path: |
77 | 77 | """ |
78 | | - Return the Path to build/arch. If missing, attempt to compile src/arch.c into it. |
| 78 | + Return the Path to build/arch. If missing, attempt to compile src/core/arch.c into it. |
79 | 79 | If compilation fails, raise RuntimeError. |
80 | 80 | """ |
81 | 81 | out_path = Path("build") / "arch" |
82 | 82 | if out_path.is_file() and os.access(out_path, os.X_OK): |
83 | 83 | return out_path |
84 | 84 |
|
85 | | - # attempt to build from src/arch.c |
| 85 | + # attempt to build from src/core/arch.c |
86 | 86 | src_c = Path("src") / "arch.c" |
87 | 87 | if not src_c.is_file(): |
88 | | - raise RuntimeError("build/arch not found and src/arch.c missing; cannot proceed") |
| 88 | + raise RuntimeError("build/arch not found and src/core/arch.c missing; cannot proceed") |
89 | 89 |
|
90 | 90 | out_dir = out_path.parent |
91 | 91 | out_dir.mkdir(parents=True, exist_ok=True) |
|
0 commit comments