36 lines
807 B
Python
Executable file
36 lines
807 B
Python
Executable file
#! /usr/bin/env python3
|
|
"""Build resume."""
|
|
|
|
from os import sep
|
|
from pathlib import Path
|
|
|
|
from rwx import fs
|
|
from rwx.ps import run
|
|
|
|
if __name__ == "__main__":
|
|
root = Path(__file__).resolve().parent
|
|
input = root / "in"
|
|
output = root / "out"
|
|
web = output / "web"
|
|
fs.wipe(output)
|
|
fs.make_directory(web)
|
|
run(
|
|
"rsync",
|
|
"--archive",
|
|
"--partial",
|
|
"--progress",
|
|
"--verbose",
|
|
f"{input}{sep}",
|
|
f"{web}{sep}",
|
|
)
|
|
run(
|
|
"qrencode",
|
|
("--background", "00000000"),
|
|
("--foreground", "000000FF"),
|
|
("--level", "L"),
|
|
("--margin", "1"),
|
|
("--read-from", str(root / "vcard.vcf")),
|
|
("--size", "4"),
|
|
("-t", "SVG"),
|
|
("--output", str(root / "img" / "vcard.svg")),
|
|
)
|