docs: add MAN page (section 8), README, user guide, admin guide, and developer guide

This commit is contained in:
soda64 committed 2026-10-02 12:37:13 +02:00
1 parent e1a99d7e6f
commit 507a3fd310
10 files changed
+835 -1

No files matched your search

+10
View File
@@ -101,6 +101,10 @@ class PackageBuilder:
str(tmp_root / "linux-updater.json.example"),
)
# Copy man page
if (self.source_root / "man").exists():
shutil.copytree(str(self.source_root / "man"), str(tmp_root / "man"))
# Archive the tree
with tarfile.open(str(out_path), "w:gz") as tar:
tar.add(str(tmp_root), arcname=f"linux-updater-{self.version}")
@@ -142,6 +146,10 @@ class PackageBuilder:
str(self.source_root / "linux-updater.json.example"),
str(etc_dir / "linux-updater.json"),
)
if (self.source_root / "man" / "linux-updater.8").exists():
man_dir = data_dir / "usr" / "share" / "man" / "man8"
man_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(str(self.source_root / "man" / "linux-updater.8"), str(man_dir / "linux-updater.8"))
# If dpkg-deb is available, use it; otherwise build native .deb
if shutil.which("dpkg-deb"):
@@ -193,6 +201,8 @@ class PackageBuilder:
str(self.source_root / "linux-updater.json.example"),
str(tmp_root / "linux-updater.json.example"),
)
if (self.source_root / "man").exists():
shutil.copytree(str(self.source_root / "man"), str(tmp_root / "man"))
with tarfile.open(str(tarball_path), "w:gz") as tar:
tar.add(str(tmp_root), arcname=f"linux-updater-{self.version}")