rsync
This commit is contained in:
parent
dc43aee71a
commit
89d1a5295a
3 changed files with 16 additions and 4 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/out
|
19
build.py
19
build.py
|
@ -1,6 +1,7 @@
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
"""Build resume."""
|
"""Build resume."""
|
||||||
|
|
||||||
|
from os import sep
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from rwx import fs
|
from rwx import fs
|
||||||
|
@ -8,10 +9,20 @@ from rwx.ps import run
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
root = Path(__file__).resolve().parent
|
root = Path(__file__).resolve().parent
|
||||||
out = root / "out"
|
input = root / "in"
|
||||||
web = out / "web"
|
output = root / "out"
|
||||||
fs.wipe(out)
|
web = output / "web"
|
||||||
fs.make_directory(web / "img")
|
fs.wipe(output)
|
||||||
|
fs.make_directory(web)
|
||||||
|
run(
|
||||||
|
"rsync",
|
||||||
|
"--archive",
|
||||||
|
"--partial",
|
||||||
|
"--progress",
|
||||||
|
"--verbose",
|
||||||
|
f"{input}{sep}",
|
||||||
|
f"{web}{sep}",
|
||||||
|
)
|
||||||
run(
|
run(
|
||||||
"qrencode",
|
"qrencode",
|
||||||
("--background", "00000000"),
|
("--background", "00000000"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue