diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2e7327 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/out diff --git a/build.py b/build.py index fb89a0a..3047ffa 100755 --- a/build.py +++ b/build.py @@ -1,6 +1,7 @@ #! /usr/bin/env python3 """Build resume.""" +from os import sep from pathlib import Path from rwx import fs @@ -8,10 +9,20 @@ from rwx.ps import run if __name__ == "__main__": root = Path(__file__).resolve().parent - out = root / "out" - web = out / "web" - fs.wipe(out) - fs.make_directory(web / "img") + 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"), diff --git a/vcard.vcf b/in/vcard.vcf similarity index 100% rename from vcard.vcf rename to in/vcard.vcf