10 Commits

3 changed files with 10 additions and 8 deletions

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pushd /src pushd /src
document_root=${PROJECT} project_name=$(tamarin_db get project_name)
for tex in ./presentations/${document_root}/*.tex for tex in presentations/$project_name/*.tex
do do
rubber --inplace -c shell_escape --unsafe --module=xelatex "$tex" rubber --inplace --module=xelatex "$tex"
cp "${tex%.tex}.pdf" /dist/ cp "${tex%.tex}.pdf" /dist/
# faire quelque chose pour le programme de la formation # faire quelque chose pour le programme de la formation
done done

View File

@ -3,9 +3,9 @@
set -e set -e
echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes texlive-full' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends texlive-full' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes make' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends make' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes fonts-liberation fonts-liberation2' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends fonts-liberation fonts-liberation2' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes python3-setuptools python-setuptools python3-pygments python-pygments' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends python3-pygments' >> Dockerfile
echo 'RUN apt-get update && apt-get install --yes rubber' >> Dockerfile echo 'RUN apt-get update && apt-get install --yes --no-install-recommends rubber' >> Dockerfile
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile

View File

@ -74,6 +74,8 @@ if __name__ == "__main__":
# Verify project directory # Verify project directory
project_dir = os.path.abspath(args.project_directory) project_dir = os.path.abspath(args.project_directory)
output_dir = os.path.abspath(args.output) output_dir = os.path.abspath(args.output)
if not os.path.exists(output_dir):
os.mkdir(output_dir)
# Load build profile # Load build profile
profile = tamarin.load_profile(args.profile, debug=args.debug) profile = tamarin.load_profile(args.profile, debug=args.debug)