Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faa71d23fe |
@@ -27,6 +27,10 @@ def main() -> int:
|
||||
return 1
|
||||
dirty = bool(git("status", "--porcelain").strip())
|
||||
names = sorted(set(git("ls-files", "-z", "--cached", "--others", "--exclude-standard").split("\0")) - {""})
|
||||
# pplus-library (library/) is a submodule: take the files its checkout tracks, so the zip tests on its own
|
||||
if (ROOT / "library" / ".git").exists():
|
||||
tracked = subprocess.run(["git", "ls-files", "-z"], cwd=ROOT / "library", check=True, capture_output=True, text=True).stdout
|
||||
names += [f"library/{n}" for n in tracked.split("\0") if n]
|
||||
names = [n for n in names if (ROOT / n).is_file()]
|
||||
out_dir = ROOT / "package"
|
||||
out_dir.mkdir(exist_ok=True)
|
||||
|
||||
Reference in new issue
Block a user