This commit is contained in:
parent
98ca70fdce
commit
7c72d6aeef
1 changed files with 6 additions and 19 deletions
25
build.py
25
build.py
|
@ -1,36 +1,23 @@
|
|||
#! /usr/bin/env -S python3 -B
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from rwx.prj import Project
|
||||
from rwx.prj.sphinx import SphinxProject
|
||||
|
||||
TRAVAUX = [
|
||||
PROJECTS = [
|
||||
# "blanc",
|
||||
# "probatoire",
|
||||
# "thesis",
|
||||
]
|
||||
|
||||
|
||||
def others():
|
||||
travaux = os.path.join("cnam.marc")
|
||||
for travail in TRAVAUX:
|
||||
subprocess.call([os.path.join(travaux, travail, "build.py")])
|
||||
|
||||
|
||||
def main():
|
||||
file = os.path.realpath(__file__)
|
||||
directory = os.path.dirname(file)
|
||||
os.chdir(directory)
|
||||
if __name__ == "__main__":
|
||||
root = Path(__file__).resolve().parent / "cnam.marc"
|
||||
# projects
|
||||
others()
|
||||
for project in PROJECTS:
|
||||
Project(root / project).build()
|
||||
# project
|
||||
sys.exit(SphinxProject(Path(__file__)).build())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue