This commit is contained in:
Marc Beninca 2020-05-01 22:01:50 +02:00
parent 28d5d34adf
commit 36d1488ea3
2 changed files with 9 additions and 7 deletions

View file

@ -5,8 +5,8 @@ import shutil
import subprocess
DOCUMENTS = [
'document',
'présentation',
('document', 'mémoire'),
('presentation', 'présentation'),
]
TMP = 'tmp'
@ -21,24 +21,26 @@ def errun(command):
def build():
for document in DOCUMENTS:
for en, fr in DOCUMENTS:
command = ['xelatex',
'-output-directory', TMP,
document,
en,
]
run(command)
run(['makeglossaries',
'-d', TMP,
document,
en,
])
run(['biber',
'--input-directory', TMP,
'--output-directory', TMP,
document,
en,
])
run(command)
run(command)
pdf = f'{document}.pdf'
os.rename(os.path.join(TMP, f'{en}.pdf'),
os.path.join(TMP, f'{fr}.pdf'))
pdf = f'{fr}.pdf'
run(['gpg',
'--armor',
'--detach-sign',