Pārlūkot izejas kodu

build.py: don't make assumptions on the generated pdf name

master
Dimitri Merejkowsky pirms 4 gadiem
vecāks
revīzija
09ee42e48f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      cours/build.py

+ 2
- 2
cours/build.py Parādīt failu

@@ -7,7 +7,7 @@ import subprocess

def run(*cmd):
print("$", *cmd)
process = subprocess.run(cmd)
process = subprocess.run(" ".join(cmd), shell=True)
if process.returncode != 0:
sys.exit(1)

@@ -47,7 +47,7 @@ def main():
# fmt: off
run(
"mv", "-v", "-f",
f"{build_path}/courspython.pdf",
f"{build_path}/*.pdf",
"../cours.pdf",
)
# fmt: on