Profil générique pour la compilation de documents
This commit is contained in:
5
hooks/build/doc-compiler/compile
Normal file
5
hooks/build/doc-compiler/compile
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
pushd /src
|
||||
make build
|
||||
popd
|
10
hooks/containerbuild/doc-compiler/add-packages
Normal file
10
hooks/containerbuild/doc-compiler/add-packages
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo 'ENV DEBIAN_FRONTEND=noninteractive' >> Dockerfile
|
||||
echo 'RUN apt-get update && apt-get install --yes make' >> Dockerfile
|
||||
echo 'RUN apt-get update && apt-get install --yes texlive-full python3-setuptools python-setuptools python3-pygments python-pygments fonts-liberation fonts-liberation2 rubber' >> Dockerfile
|
||||
echo 'RUN apt-get update && apt-get install --yes pandoc' >> Dockerfile
|
||||
echo 'ENV DEBIAN_FRONTEND=' >> Dockerfile
|
||||
|
13
hooks/containerbuild/doc-compiler/add-resources
Normal file
13
hooks/containerbuild/doc-compiler/add-resources
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
if [ -e './datasets/fonts' ]
|
||||
then
|
||||
for font_file in $(find . -wholename "./datasets/fonts/*.ttf")
|
||||
do
|
||||
echo 'COPY datasets/fonts/$font_file /root/.fonts/$font_file' >> Dockerfile
|
||||
done
|
||||
fi
|
||||
exit 0
|
14
hooks/postbuild/doc-compiler/export-dist
Normal file
14
hooks/postbuild/doc-compiler/export-dist
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
function move_output_to_dist {
|
||||
find . -name "$1" -type f -print0 | xargs -0r mv -t /dist/
|
||||
}
|
||||
|
||||
# Create new directory
|
||||
mkdir -p /dist
|
||||
|
||||
# Move generated files
|
||||
move_output_to_dist "*.pdf"
|
||||
|
||||
tamarin_success "Done :-)"
|
||||
|
4
hooks/prebuild/doc-compiler/complete-project-db
Normal file
4
hooks/prebuild/doc-compiler/complete-project-db
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd src
|
||||
|
Reference in New Issue
Block a user