cv.marc/build.py

37 lines
851 B
Python
Raw Normal View History

2025-02-22 21:55:09 +01:00
#! /usr/bin/env python3
"""Build resume."""
2025-02-22 22:17:52 +01:00
from os import sep
2025-02-22 21:55:09 +01:00
from pathlib import Path
from rwx import fs
from rwx.ps import run
if __name__ == "__main__":
root = Path(__file__).resolve().parent
2025-02-23 00:19:27 +01:00
root_input = root / "in"
root_output = root / "out"
web = root_output / "web"
fs.wipe(root_output)
2025-02-22 22:17:52 +01:00
fs.make_directory(web)
run(
"rsync",
"--archive",
"--partial",
"--progress",
"--verbose",
2025-02-23 00:23:51 +01:00
f"{root_input}{sep}",
2025-02-22 22:17:52 +01:00
f"{web}{sep}",
)
2025-02-22 21:55:09 +01:00
run(
"qrencode",
("--background", "00000000"),
("--foreground", "000000FF"),
("--level", "L"),
("--margin", "1"),
2025-03-28 16:40:38 +01:00
("--read-from", str(root_input / "marc.beninca.vcf")),
2025-02-22 21:55:09 +01:00
("--size", "4"),
("-t", "SVG"),
2025-03-28 16:40:38 +01:00
("--output", str(web / "img" / "marc.beninca.svg")),
2025-02-22 21:55:09 +01:00
)